Go to file
Tony Murray eeb3d58f5b Improved Logging and Debugging (#8870)
Use Log facility when Laravel is booted.
Update init.php so we can easily boot Laravel for CLI scripts. (and just Eloquent, but that may go away)
Move all debug setup into set_debug() function and use that across all scripts.
Log Laravel database queries.
Send debug output to librenms log file when enabling debug in the webui.
Allow for colorized Log CLI output. (currently will leave % tags in log file output)

** Needs testing and perhaps tweaking still.

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-07-13 23:08:00 +01:00
.github Update lock.yml 2018-05-18 09:40:34 +01:00
LibreNMS Improved Logging and Debugging (#8870) 2018-07-13 23:08:00 +01:00
app Improved Logging and Debugging (#8870) 2018-07-13 23:08:00 +01:00
bootstrap Add Laravel to LibreNMS (#8318) 2018-05-09 08:05:17 -05:00
cache fix: page/graph load speed: part 1 (#6611) 2017-05-10 08:57:10 +01:00
config Don't require mysql 5.5 or newer. (#8695) 2018-05-11 10:33:36 -05:00
contrib feature: New IP parsing classes. Removes usage of Pear Net_IPv4 and Net_IPv6. (#7106) 2017-08-08 14:14:58 -05:00
database Add Laravel to LibreNMS (#8318) 2018-05-09 08:05:17 -05:00
doc Support specifying submodules in poller and discovery for debug (#8896) 2018-07-12 21:30:39 +01:00
html Improved Logging and Debugging (#8870) 2018-07-13 23:08:00 +01:00
includes Improved Logging and Debugging (#8870) 2018-07-13 23:08:00 +01:00
lib webui: Removed unused JS causing issues with typeahead (#8307) 2018-03-09 18:11:24 +01:00
licenses delete old stuff, put licenses into licenses 2011-09-29 15:58:18 +00:00
logs fix: Errors in the documentations for CentOS 7 (#7510) 2017-10-18 14:38:56 -05:00
mibs Improved support for cambium cmm and added cmm4 (#8737) 2018-07-07 13:56:54 +01:00
misc New python service for poller, discovery + more (#8455) 2018-06-30 12:19:49 +01:00
resources Add Laravel to LibreNMS (#8318) 2018-05-09 08:05:17 -05:00
routes Add Laravel to LibreNMS (#8318) 2018-05-09 08:05:17 -05:00
rrd fix: Errors in the documentations for CentOS 7 (#7510) 2017-10-18 14:38:56 -05:00
scripts Improved Logging and Debugging (#8870) 2018-07-13 23:08:00 +01:00
sql-schema New python service for poller, discovery + more (#8455) 2018-06-30 12:19:49 +01:00
storage Add Laravel to LibreNMS (#8318) 2018-05-09 08:05:17 -05:00
tests Improved support for cambium cmm and added cmm4 (#8737) 2018-07-07 13:56:54 +01:00
.codeclimate.yml Update .codeclimate.yml (#5044) 2016-11-22 10:01:04 +00:00
.editorconfig added editorconfig file for project 2016-01-04 13:16:13 +01:00
.env.example Add Laravel to LibreNMS (#8318) 2018-05-09 08:05:17 -05:00
.gitignore New python service for poller, discovery + more (#8455) 2018-06-30 12:19:49 +01:00
.mention-bot Update .mention-bot (#5371) 2017-01-09 21:19:03 +00:00
.scrutinizer.yml refactor: use Composer to manage php dependencies (#5216) 2017-01-01 09:37:15 +00:00
.travis.yml Add Laravel to LibreNMS (#8318) 2018-05-09 08:05:17 -05:00
AUTHORS.md api: Added add_service_for_host endpoint to API (#8113) 2018-01-21 19:56:57 +00:00
CHANGELOG.md Small Cleanup (#8871) 2018-07-07 13:55:17 +01:00
CODE_OF_CONDUCT.md docs: Added code of conduct doc in root (#7055) 2017-07-21 12:36:33 -05:00
CONTRIBUTING.md Point to the new place of the contributing documentation (#8276) 2018-02-21 21:50:24 +00:00
LICENSE.txt Update copyright instructions 2014-06-23 13:44:12 +10:00
Makefile webui: Removed unused JS causing issues with typeahead (#8307) 2018-03-09 18:11:24 +01:00
README.md docs: Updated references for ##librenms to discord (#7523) 2017-10-20 14:22:18 -05:00
addhost.php feature: Support for up/down detection of ping only devices. 2017-10-27 22:59:25 -05:00
adduser.php refactor: Refactored authorizers to classes (#7497) 2017-11-18 10:33:03 +00:00
alerts.php Improved Logging and Debugging (#8870) 2018-07-13 23:08:00 +01:00
artisan Add Laravel to LibreNMS (#8318) 2018-05-09 08:05:17 -05:00
billing-calculate.php refactor: Various Code Cleanup (#5777) 2017-02-05 22:37:08 +00:00
build-base.php refactor: Refactor database and config init (#8527) 2018-04-11 16:15:13 +01:00
build.sql Db collation standardisation (#5932) 2017-02-27 18:28:01 +00:00
check-services.php Improved Logging and Debugging (#8870) 2018-07-13 23:08:00 +01:00
composer.json Updated YAML schema validation (#8808) 2018-06-15 09:45:20 +01:00
composer.lock Updated YAML schema validation (#8808) 2018-06-15 09:45:20 +01:00
config.php.default docs: Use single quotes in example SNMP community per issue 8342 (#8348) 2018-03-09 17:26:29 +01:00
config_to_json.php New python service for poller, discovery + more (#8455) 2018-06-30 12:19:49 +01:00
cronic fix: Updated bin/bash to use env in cronic script (#4752) 2016-10-13 22:23:53 +01:00
daily.php Added support for auto purging deleted ports (#8861) 2018-07-03 08:27:20 -05:00
daily.sh Added support for auto purging deleted ports (#8861) 2018-07-03 08:27:20 -05:00
delhost.php refactor: Centralize includes and initialization (#4991) 2016-11-21 20:12:59 +00:00
discovery-wrapper.py Added ability to enable debug output with wrappers (#8830) 2018-06-20 22:56:51 +01:00
discovery.php Improved Logging and Debugging (#8870) 2018-07-13 23:08:00 +01:00
dist-pollers.php refactor: Centralize includes and initialization (#4991) 2016-11-21 20:12:59 +00:00
irc.php refactor: Centralize includes and initialization (#4991) 2016-11-21 20:12:59 +00:00
librenms-service.py Updated shebang on librenms-service.py (#8875) 2018-07-08 22:25:29 +01:00
librenms.cron More more docs (#4197) 2016-08-25 18:40:11 -05:00
librenms.nonroot.cron refactor: Switch to using discovery-wrapper.py by default (#7661) 2017-11-09 11:19:47 -06:00
mkdocs.yml testing: Added test unit for Docs (#8745) 2018-05-25 23:10:25 -05:00
package.json Add Laravel to LibreNMS (#8318) 2018-05-09 08:05:17 -05:00
pbin.sh updated pbin.sh to be inline with other scripts and use env bash (#6583) 2017-05-05 07:52:52 +01:00
phpunit.xml Add Laravel to LibreNMS (#8318) 2018-05-09 08:05:17 -05:00
poll-billing.php Improved Logging and Debugging (#8870) 2018-07-13 23:08:00 +01:00
poller-service.py feature: support non-standard unix socket (#5724) 2017-04-06 22:02:37 +01:00
poller-wrapper.py Added ability to enable debug output with wrappers (#8830) 2018-06-20 22:56:51 +01:00
poller.php Improved Logging and Debugging (#8870) 2018-07-13 23:08:00 +01:00
readmegen.yml added changelog for v1.25 (#6018) 2017-02-26 22:14:06 +00:00
renamehost.php refactor: Centralize includes and initialization (#4991) 2016-11-21 20:12:59 +00:00
requirements.txt New python service for poller, discovery + more (#8455) 2018-06-30 12:19:49 +01:00
server.php Add Laravel to LibreNMS (#8318) 2018-05-09 08:05:17 -05:00
services-wrapper.py Added ability to enable debug output with wrappers (#8830) 2018-06-20 22:56:51 +01:00
snmp-scan.py snmpscan.py: ignore bad DNS config (#8656) 2018-05-04 09:46:18 -05:00
snmp.conf.example snmp.conf is not needed so do not recommend to set anything (#6204) 2017-03-16 13:52:23 -05:00
snmpd.conf.example Documentation updates for DMI support and making two links in the FAQ work (#8440) 2018-05-08 18:35:25 -05:00
snmptrap.php Improved Logging and Debugging (#8870) 2018-07-13 23:08:00 +01:00
syslog.php refactor: Centralize includes and initialization (#4991) 2016-11-21 20:12:59 +00:00
validate.php refactor: Refactor database and config init (#8527) 2018-04-11 16:15:13 +01:00
webpack.mix.js Add Laravel to LibreNMS (#8318) 2018-05-09 08:05:17 -05:00

README.md

Scrutinizer Status Scrutinizer Code Quality Travis Status

Introduction

LibreNMS is an autodiscovering PHP/MySQL/SNMP based network monitoring which includes support for a wide range of network hardware and operating systems including Cisco, Linux, FreeBSD, Juniper, Brocade, Foundry, HP and many more.

We intend LibreNMS to be a viable project and community that:

  • encourages contribution,
  • focuses on the needs of its users, and
  • offers a welcoming, friendly environment for everyone.

The Debian Social Contract will be the basis of our priority system, and mutual respect is the basis of our behaviour towards others. For more about the culture we're trying to build, please read the Freenode philosophy, including guidelines for running an IRC channel and being a community catalyst.

Documentation

Documentation can be found in the doc directory or docs.librenms.org, including instructions for installing and contributing.

Participating

You can participate in the project by:

VM image

You can try LibreNMS by downloading a VM image. Currently, a Ubuntu-based image is supplied and has been tested with VirtualBox.

Download one of the VirtualBox images we have available, documentation is provided which details login credentials and setup details.

License

Copyright (C) 2006-2012 Adam Armstrong adama@memetic.org

Copyright (C) 2013-2017 by individual LibreNMS contributors

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

LICENSE.txt contains a copy of the full GPLv3 licensing conditions.

The following additional license conditions apply to LibreNMS (a GPL exception):

As a special exception, you have permission to link or otherwise combine LibreNMS with the included copies of the following third-party software, and distribute modified versions, as long as you follow the requirements of the GNU GPL v3 in regard to all of the remaining software (comprising LibreNMS).

Please see Acknowledgements

Backers

Support us with a monthly donation and help us continue our activities. [Become a backer]

Sponsors

Become a sponsor and get your logo on our README on Github with a link to your site. [Become a sponsor]