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:
Tony Murray
2018-06-15 08:22:43 -05:00
committed by Neil Lathwood
parent 646a37f55e
commit fd77b23624
6 changed files with 60 additions and 26 deletions

View File

@@ -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`

View File

@@ -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