Commit Graph

13 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
RobJE
6a99968e4b Brocade updates (#8611)
* update FOUNDRY-SN-ROOT-MIB to support MLXe and more

* add some (former) brocade rewrites

* improved IronWare version detection

* work around IronWare signed versus unsigned bug

* correct coding guidelines

* update FOUNDRY-SN-ROOT-MIB to support MLXe and more

* add some (former) brocade rewrites

* improved IronWare version detection

* work around IronWare signed versus unsigned bug

* correct coding guidelines

* pop spaces around mempool checks
2018-04-25 20:59:04 +01:00
Chris A. Evans
5b42044d04 Fix IronWare mempool device type detection in polling module (#7620) 2017-11-04 21:20:14 +00:00
Chris A. Evans
47b999cebd device: Change Ironware mempools NetIron checking logic from sysObjectID to sysDescr (#7602)
* Changed the NetIron checking logic from sysObjectID to sysDescr

* updated method of checking sysDescr in ironware mempool files

* Update ironware-dyn.inc.php
2017-11-01 21:41:15 +00:00
Tony Murray
edbb6ae0e3 refactor: Centralize MIB include directory specification (#4603)
* refactor: Centralize MIB include directory specification
The default is now:
```
$config['mib_dir'].'/mibdirname:'.$config['mib_dir']
```
This means we exclude OS mibs and only use ours  (we could prepend `+` if we want to include os mibs.
All snmp calls should only include the name of the subdirectory under the mibs directory.

* Remove d_echo from Proc
Fix snmpsim tests.
2016-09-28 14:19:28 +01:00
Tony Murray
9284bc60ff Update code in includes to be PSR-2 compliant (#4220)
refactor: Update code in /includes to be psr2 compliant #4220
2016-08-28 18:32:58 +01:00
thecityofguanyu
b9332fad89 modified: includes/discovery/mempools/ironware-dyn.inc.php
modified:   includes/polling/mempools/ironware-dyn.inc.php
2016-04-01 16:29:58 -05:00
Job Snijders
d8693f05ae Fix coding style part 2 2015-07-15 11:04:22 +02:00
Alexander Sosna
5a7988e2e4 chmod 0644 to php files not directly executed 2015-04-28 22:58:03 +02:00
Adam Amstrong
b273e04241 /// -> //
git-svn-id: http://www.observium.org/svn/observer/trunk@3240 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-25 12:24:34 +00:00
Adam Amstrong
cacf913a55 # -> / for phpdoc
git-svn-id: http://www.observium.org/svn/observer/trunk@3239 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-25 11:29:53 +00:00
Tom Laermans
dc1e291f1f cleanup polling/mempools
git-svn-id: http://www.observium.org/svn/observer/trunk@1842 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-15 12:04:26 +00:00
Adam Amstrong
538e96462f Move mempool polling scripts into their own directory. add Juniper ScreenOS CPU/Memory hardcoded discovery/poller
git-svn-id: http://www.observium.org/svn/observer/trunk@1467 61d68cd4-352d-0410-923a-c4978735b2b8
2010-07-23 18:15:54 +00:00