mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Added debug options to wrapper scripts to record output to logs/ dir (#8811)
* Ability to enable debug output with wrappers Output is redirected to a per-device file in the log directory. * Add warning * Added some docs to help with debugging using this new option
This commit is contained in:
committed by
Neil Lathwood
parent
646a37f55e
commit
fd77b23624
@@ -39,6 +39,8 @@ new will poll only those devices that have recently been added or have been sele
|
||||
|
||||
We have a `discovery-wrapper.py` script which is based on `poller-wrapper.py` by [Job Snijders](https://github.com/job). This script is currently the default.
|
||||
|
||||
If you need to debug the output of discovery-wrapper.py then you can add `-d` to the end of the command - it is NOT recommended to do this in cron.
|
||||
|
||||
If you want to switch back to discovery.php then you can replace:
|
||||
|
||||
`33 */6 * * * librenms /opt/librenms/discovery-wrapper.py 1 >> /dev/null 2>&1`
|
||||
|
@@ -36,6 +36,12 @@ even. all will run poller against all devices.
|
||||
|
||||
`-m` This enables you to specify the module you want to run for poller.
|
||||
|
||||
#### Poller Wrapper
|
||||
|
||||
We have a `poller-wrapper.py` script by [Job Snijders](https://github.com/job). This script is currently the default.
|
||||
|
||||
If you need to debug the output of poller-wrapper.py then you can add `-d` to the end of the command - it is NOT recommended to do this in cron.
|
||||
|
||||
#### Poller config
|
||||
|
||||
These are the default poller config items. You can globally disable a module by setting it to 0. If you just want to
|
||||
|
Reference in New Issue
Block a user