Changed device hostname & name, now validate reports cron job not running

install was working great, and then i decided to rename the host that is running librenms at the OS level.

polling is continuing to run ok, however validate.php reports two pollers (for the original hostname) have not run in the last 5 minutes. all devices seem to be polling ok, so this seems like a false positive error?

opt/librenms$ sudo ./validate.php

Component Version
LibreNMS 1.39-6-g414079680
DB Schema 249
PHP 7.2.3-1ubuntu1
MySQL 5.7.22-0ubuntu18.04.1
RRDTool 1.7.0
SNMP NET-SNMP 5.7.3

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

[OK] Composer Version: 1.6.4
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[FAIL] The poller (ubuntu) has not completed within the last 5 minutes, check the cron job.
[FAIL] The poller (ubuntu.local) has not completed within the last 5 minutes, check the cron job.

‘ubuntu’ was the hostname of the machine previously.

running discovery-wrapper.py seems ok as well:

INFO: starting the discovery at 2018-05-03 22:29:58 with 1 threads, slowest devices first
INFO: worker Thread-1 finished device 31 in 33 seconds
INFO: worker Thread-1 finished device 19 in 10 seconds
INFO: worker Thread-1 finished device 17 in 4 seconds
INFO: worker Thread-1 finished device 18 in 7 seconds
INFO: worker Thread-1 finished device 32 in 2 seconds
INFO: worker Thread-1 finished device 33 in 2 seconds
INFO: worker Thread-1 finished device 26 in 2 seconds
INFO: worker Thread-1 finished device 34 in 3 seconds
INFO: worker Thread-1 finished device 23 in 2 seconds
INFO: worker Thread-1 finished device 25 in 2 seconds
INFO: worker Thread-1 finished device 24 in 2 seconds
INFO: discovery-wrapper polled 11 devices in 74 seconds with 1 workers

What should i be doing here to cleanup the result of validate.php?

Side note - i moved my pihole install to a different box so starting polling that device again, however was not getting data returned on the new install (another ubuntu vm). I followed the guide at https://docs.librenms.org/#Extensions/Applications/#pi-hole for this. Trying to run ./pi-hole manually returned the following:

etc/snmp$ ./pi-hole
./pi-hole: line 68: jq: command not found
(23) Failed writing body

running ‘apt install jq’ installed ‘jq libjq1 libonig4’ packages, thought it might be worth adding to the docs as others may run into this.

You have two poller entries, one with the old name and one with the new name, you can delete one in the ui under Settings -> Poller -> Pollers.

just fixed this, removing the old entries under the pollers table in the mysql backend did the trick.

thanks - unfortunate timing. they don’t display under pollers in the UI now. good to know for future though

1 Like

Glad you got it fixed. Hoping to use a uuid to track pollers in the future :slight_smile: