33 Commits

Author SHA1 Message Date
0ba76e6d62 New python service for poller, discovery + more (#8455)
Currently has a file handle leak (and will eventually run out of handles) related to the self update process.

Either need to fix that or rip out self-update and leave that up to cron or something.


DO NOT DELETE THIS TEXT

#### Please note

> Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting.

- [x] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/)

#### Testers

If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
2018-06-30 12:19:49 +01:00
1ad7f3138b Add Laravel to LibreNMS (#8318)
* Add Laravel to LibreNMS.

* Try to set permissions during initial install and first composer update to Laravel.

* Fix composer.lock
Fix missing db config keys

* Start building v1 layout
Port ajax_setresolution, inject csrf into jquery ajax calls
Layout works, building menu
Partially done.

* Fix device group list
remove stupid count relationships

* Print messages for common boot errors.
Don't log to laravel.log file.
Log to error_log until booted, then librenms.log

* Fix up some issues with Config loading
Start of custom directives

* Custom blade directives: config, notconfig, admin

* Preflight checks
Only load config files once.

* Update the composer.lock for php 5.6

* Menu through routing

* Start of alert menu

* Better alert scopes

* reduce cruft in models

* Alerting menu more or less working :D

* Fix style

* Improved preflight

* Fix chicken-eggs!

* Remove examples

* Better alert_rule status queries
Debugbar

* fix app.env check

* User Menu

* Settings bar (dropped refresh)
Search JS

* Toastr messages

* Rename preflight

* Use hasAccess(User) on most models.
Add port counts

* Missed a Preflight -> Checks rename

* Fix some formatting

* Boot Eloquent outside of Laravel
Use Eloquent for Config and Plugins so we don't have to connect with dbFacile inside Laravel.
Move locate_binary() into Config class

* Config WIP

* Try to fix a lot of config loading issues.

* Improve menu for non-admins removing unneeded menus
url() for all in menu

* Only use eloquent if it exists

* Include APP_URL in initial .env settings

* Implement Legacy User Provider

* Helper class for using Eloquent outside of Laravel.
Allows access to DB style queries too and checking the connection status.

* Fix up tests

* Fix device groups query

* Checking Travis

* copy config.test.php earlier

* dbFacile check config before connecting
Don't use exception to check if eloquent is connected, it gets grabbed by the exception handler.
Ignore missing config.php error.

* Fix config load with database is not migrated yet.

* Remove Config::load() from early boot.

* Use laravel config settings to init db (this prefers .env settings)
Fix bgp vars not set in menu
add _ide_helper.php to .gitignore

* Restrict dependencies to versions that support php 5.6

* Update ConfigTest

* Fix a couple of installation issues

* Add unique NODE_ID to .env

* Correct handling of title image

* Fix database config not loading. Thanks @laf

* Don't prepend /

* add class_exists checks for development service providers

* Fix config value casting

* Don't use functions that may not exist

* Update dbFacile.php

* d_echo may not be defined when Config used called.

* Add SELinux configuration steps
More detailed permissions check.
Check all and give complete corrective commands in one step.

* Ignore node_modules directory

* Re-add accidetal removal
2018-05-09 08:05:17 -05:00
6878df8c12 Prep for composer changes (#8075)
* Prep for composer changes

* Update composer.json, composer.lock and a small update to phpmailer and Yaml

* Prevent accidental `composer update` runs

* Add  --no-interaction to daily.sh
2018-01-22 08:16:37 -06:00
163d0b4f88 fix: Errors in the documentations for CentOS 7 (#7510)
* fix: Erros in the documentations for CentOS 7

* fix: Erros in the documentations for CentOS 7

* fix: Erros in the documentations for CentOS 7

* fix: Erros in the documentations for CentOS 7

* Some corrections to make docs work as intended.

* re-add httpd_execmem for nginx
2017-10-18 14:38:56 -05:00
31993387e4 docs: Updated alerting docs / formatting (#7185)
* Ignore docs/

* Fix indenentation

YAML's pretty strict

* Remove static anchor names

Markdown does this automatically for us

* Tabelize entities

* Remove tildes

They don't do anything
2017-08-19 19:40:50 +01:00
e670a639e7 webui: Add $config['title_image'] in doc and use it also for login screen (#5683) 2017-01-31 08:16:01 +00:00
4cf9c0f2c7 added support for mention bot (#5347) 2017-01-08 17:39:12 +00:00
f5a16be0e3 refactor: Move OS definitions into yaml files (#5189) 2016-12-23 17:53:19 +00:00
f488e0b689 Added support for codeclimate (#5034) 2016-11-21 20:48:58 +00:00
b5be6e9271 feature: Added custom css and include directories which are ignored by git (#4871) 2016-10-28 05:55:40 +00:00
fc0871f716 Move Support New OS to the Developing menu (#4636)
Re-arrange the Developing menu, needs separators...
2016-09-27 17:52:26 +01:00
dcff4d3ed1 Revert "Some more doc updates" (#4231) 2016-08-27 22:12:44 +01:00
acde0db434 More doc updates 2016-08-27 13:41:26 +01:00
9f1930a81e More more docs (#4197)
* Updated docs + some small code changes

* Added validating code doc for developers

* Doc updates

* Updates and improvements
2016-08-25 18:40:11 -05:00
64399c833a Prep Travis.yml for codesniffer changes 2016-08-15 13:23:21 -05:00
0553fb6b5a Add php_code_sniffer config file 2016-08-10 15:16:21 -05:00
laf
5d73c0c2fd Added issue template 2016-05-02 18:17:31 +00:00
985ea9bea6 Enable phpunit testing in Travis CI. 2016-03-03 11:56:29 -06:00
62cd6e8e7a Tweaked .gitignore 2016-01-14 17:58:17 +01:00
e9b1e91792 added temporary files to gitignore 2016-01-04 13:15:31 +01:00
8e34e83d97 add swp to gitignore for vim 2015-08-25 11:35:13 -04:00
laf
ac4eba78e4 Added support for AirOS and AirFibre from UBNT 2015-04-03 18:59:58 +01:00
7b31e98bfe Updated .gitignore to remove .ircbot.alert 2015-03-03 14:17:55 +00:00
6e341a960f Added .alerts.lock to .gitignore 2015-02-26 23:15:17 +00:00
bd17de8eb7 Provide local junk dir; ignore contents 2015-02-06 08:59:42 +10:00
75c4ce4edb Genericise Makefile and do not ignore it 2014-10-28 05:56:36 +10:00
f46addd947 Trying out NetBeans IDE - ignore projects dir 2014-06-24 10:29:09 +10:00
d1e3998fd2 Remove Makefile - used only for local testing 2014-06-17 07:10:45 +10:00
laf
4151269de4 Moved plugins menu and enabled Test plugin by default 2014-03-12 22:03:47 +00:00
a0979e85cd Tidy up formatting; proof-of-concept right side box 2013-11-19 08:57:43 +10:00
346ca22a97 Removed cruft 2013-11-05 09:22:24 +10:00
a056c7de62 Ignore a couple of directories in my dev tree 2013-10-29 05:48:19 +10:00
a78ed7682a Add .gitignore to ignore my shameful misdeeds 2013-10-28 18:01:50 +10:00