Cron job not running

I don’t think that my /etc/cron.d/librenms cron job is running. Is this because I am also using the system crontab?

First thing that I noticed was that my daily updates are not running automatically because my GUI was inaccessible a few weeks ago and I just updated it to resolve it.

Second thing I noticed… I’ve been trying to tweak my poller threads because my performance seems very slow and even after increasing and decreasing the count on the poller-wrapper.py cron (*/5 * * * * librenms /opt/librenms/cronic /opt/librenms/poller-wrapper.py 16) It doesn’t seem to make a difference. If I run poller-wrapper manually, it still states that it is running at the default 16. Also, when I checked the logs, I get this message:


Cronic detected failure or error output for the command:

/opt/librenms/poller-wrapper.py 16

RESULT CODE: 2

ERROR OUTPUT:

STANDARD OUTPUT:

ERROR: Could not load or parse configuration, are PATHs correct?


Any other way to confirm cronjob is running?

Post your /etc/cron.d/librenms

everything should be in there and nowhere else.

Also, you need to run ./validate.php and post it.

./validate.php

====================================

Component Version
LibreNMS 1.48.1-85-gee76057
DB Schema 2019_02_10_220000_add_dates_to_fdb (132)
PHP 7.2.14
MySQL 5.5.60-MariaDB
RRDTool 1.4.8
SNMP NET-SNMP 5.7.2

====================================

[OK] Composer Version: 1.8.4
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct

/etc/cron.d/librenms

Using this cron file requires an additional user on your system, please see install docs.

33 */6 * * * librenms /opt/librenms/cronic /opt/librenms/discovery-wrapper.py 1
*/5 * * * * librenms /opt/librenms/discovery.php -h new >> /dev/null 2>&1
*/5 * * * * librenms /opt/librenms/cronic /opt/librenms/poller-wrapper.py 8

          • librenms /opt/librenms/alerts.php >> /dev/null 2>&1
            */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
            00 09 * * * librenms /opt/fixrights.sh

Daily maintenance script. DO NOT DISABLE!

If you want to modify updates:

Switch to monthly stable release: https://docs.librenms.org/General/Releases/

Disable updates: https://docs.librenms.org/General/Updating/

15 0 * * * librenms /opt/librenms/daily.sh >> /dev/null 2>&1

I’ve changed the thread to see if that makes a difference today.

When I run poller-wrapper it still says:
INFO: starting the poller at 2019-02-26 10:09:15 with 16 threads, slowest devices first