Check-services.php

Hi Guys,

Please advise how can I define how many parallel threads in service-check nagios plugin I can run
Below is my cron file:

#33 */6 * * * librenms /opt/librenms/discovery.php -h all >> /dev/null 2>&1
33 */6 * * * librenms /opt/librenms/discovery-wrapper.py 2 >> /dev/null 2>&1
*/5 * * * * librenms /opt/librenms/discovery.php -h new >> /dev/null 2>&1
*/2 * * * * librenms /opt/librenms/cronic /opt/librenms/poller-wrapper.py 5
*/5 * * * * librenms /opt/librenms/poll-billing.php >> /dev/null 2>&1
01 * * * * librenms /opt/librenms/billing-calculate.php >> /dev/null 2>&1
*/5 * * * * librenms /opt/librenms/check-services.php >> /dev/null 2>&1
*/5 * * * * librenms /opt/librenms/html/plugins/Weathermap/map-poller.php >> /dev/null 2>&1
*/1 * * * * librenms /opt/librenms/check-services.php >> /dev/null 2>&1

You need to modify your cron to use services-wrapper.py instead. Modify it like below.

#*/1  *    * * *   librenms    /opt/librenms/check-services.php >> /dev/null 2>&1
*/2    *    * * *   librenms    /opt/librenms/cronic /opt/librenms/services-wrapper.py 16

Number in the end is the number of threads for services polling.

Let me try

Trying to run it manually, it should show me any debug mode output?

[root@dl1-librennms01 ~]# /opt/librenms/services-wrapper.py 15 -d
INFO: starting the service check at 2018-06-11 08:21:30 with 15 threads

Should I run it as /opt/librenms/cronic /opt/librenms/services-wrapper.py 15 -d
or /opt/librenms/services-wrapper.py 15 -d