Commit Graph

25 Commits

Author SHA1 Message Date
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
Robbie Penziol
afb838bc10 webgui: Added ability to set warning percentage for CPU, mempools from device edit page (#5895) 2017-03-03 15:07:12 +00:00
David Bell
bfe59646bf Remove Superfluous \'s from mempool graph (#4827) 2016-10-19 20:28:02 +01:00
Tony Murray
8c639aa5a4 PSR2 Cleanup: /html edition
Travis tests for code conformance. Ignore warnings for now.
Fixed all errors, left most warnings.
2016-08-18 21:29:30 -05:00
Tony Murray
57650e4ffc Remove nfs requirement for distributed poller (with rrdtool 1.5+)
Use data_update instead of rrd_update/rrd_create and influx_update
Centralize rrd file check so we can check against a remote rrdcached server too
Use rrd_name() to generate rrd file names
2016-07-07 21:10:06 -05:00
Job Snijders
d8693f05ae Fix coding style part 2 2015-07-15 11:04:22 +02:00
Job Snijders
ebd0f6fc35 Apply "Squiz" code style on old (pre-2014) files 2015-07-11 16:12:35 +02:00
Alexander Sosna
5a7988e2e4 chmod 0644 to php files not directly executed 2015-04-28 22:58:03 +02:00
Tom Laermans
cc7f01ee26 more rrdtool_escape goodness
git-svn-id: http://www.observium.org/svn/observer/trunk@3230 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-23 10:37:23 +00:00
Adam Amstrong
f768558e7e fix auth for graphs to allow cidr filter. fix schema 006
git-svn-id: http://www.observium.org/svn/observer/trunk@3169 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-11 15:21:42 +00:00
Adam Amstrong
d52042ba47 cleanups to how graphing works. start using device= for device graphs.
git-svn-id: http://www.observium.org/svn/observer/trunk@3167 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-11 13:26:14 +00:00
Adam Amstrong
22dad0dae4 revert change changing mempool/storage format
git-svn-id: http://www.observium.org/svn/observer/trunk@3091 61d68cd4-352d-0410-923a-c4978735b2b8
2012-04-26 16:15:11 +00:00
Adam Amstrong
2b8178bb5b move all RRA decisions to config. switch mempool/storage to new rrds (sorry, data lost, the old rrds sucked). added some more apps pages.
git-svn-id: http://www.observium.org/svn/observer/trunk@3068 61d68cd4-352d-0410-923a-c4978735b2b8
2012-04-20 17:37:58 +00:00
Tom Laermans
2b6581f25d syntaxer run
git-svn-id: http://www.observium.org/svn/observer/trunk@2968 61d68cd4-352d-0410-923a-c4978735b2b8
2012-04-05 16:47:39 +00:00
Adam Amstrong
1224f7107c reverse percentage on mempools
git-svn-id: http://www.observium.org/svn/observer/trunk@2700 61d68cd4-352d-0410-923a-c4978735b2b8
2011-10-25 11:29:12 +00:00
Adam Amstrong
2d284e20e8 better mempool graph
git-svn-id: http://www.observium.org/svn/observer/trunk@2699 61d68cd4-352d-0410-923a-c4978735b2b8
2011-10-25 10:52:29 +00:00
Adam Amstrong
3041b03da2 graphs auth.inc.phps to db*
git-svn-id: http://www.observium.org/svn/observer/trunk@2303 61d68cd4-352d-0410-923a-c4978735b2b8
2011-05-13 12:49:23 +00:00
Adam Amstrong
efd9d30ee7 move percentage colour mappings to function. make graphs for memory/storage match percentage colours (should we do this for others?)
git-svn-id: http://www.observium.org/svn/observer/trunk@2160 61d68cd4-352d-0410-923a-c4978735b2b8
2011-04-25 17:15:36 +00:00
Tom Laermans
7604734ec1 probably final graph cleanups
git-svn-id: http://www.observium.org/svn/observer/trunk@1909 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-17 14:27:03 +00:00
Adam Amstrong
1b7829ec51 fix unauthenticated graphs via $config['allow_unauth_graphs']
git-svn-id: http://www.observium.org/svn/observer/trunk@1691 61d68cd4-352d-0410-923a-c4978735b2b8
2010-08-22 22:12:32 +00:00
Adam Amstrong
8143340a02 rename merge generateiflink && generate_if_link to generate_port_link, rename generatedevicelink to generate_device_link
git-svn-id: http://www.observium.org/svn/observer/trunk@1624 61d68cd4-352d-0410-923a-c4978735b2b8
2010-08-02 22:09:52 +00:00
Tom Laermans
fb3befd29d fix broken graphs with disabled short tags
git-svn-id: http://www.observium.org/svn/observer/trunk@1613 61d68cd4-352d-0410-923a-c4978735b2b8
2010-08-02 16:38:03 +00:00
Adam Amstrong
3d937d28e9 graphing system updates
git-svn-id: http://www.observium.org/svn/observer/trunk@1599 61d68cd4-352d-0410-923a-c4978735b2b8
2010-08-01 14:17:06 +00:00
Adam Amstrong
11f8fd3645 updated graph definitions (don't fuck with .svn!)
git-svn-id: http://www.observium.org/svn/observer/trunk@1471 61d68cd4-352d-0410-923a-c4978735b2b8
2010-07-24 19:24:07 +00:00
Adam Amstrong
ada14bd542 Major changes to graphing system organisation. Prevent sensors from being discovered in ENTITY-SENSOR-MIB if they've already been detected in CISCO-ENTITY-SENSOR-MIB (they share entPhysicalIndex). Fix ADSL poller. Make popup overlibs prettier as default.
git-svn-id: http://www.observium.org/svn/observer/trunk@1470 61d68cd4-352d-0410-923a-c4978735b2b8
2010-07-24 19:14:41 +00:00