get message How do I fix this?
[FAIL] Discovery has not completed in the last 24 hours.
[FIX] Check the cron job to make sure it is running and using discovery-wrapper.py
many thanks.
[root@librenms logs]# /opt/librenms/validate.php
Component
Version
LibreNMS
1.33-39-g21495a8
DB Schema
215
PHP
7.0.24
MySQL
5.5.56-MariaDB
RRDTool
1.4.8
SNMP
NET-SNMP 5.7.2
====================================
[OK] Database connection successful
[OK] Database schema correct
[FAIL] Discovery has not completed in the last 24 hours.
[FIX] Check the cron job to make sure it is running and using discovery-wrapper.py
I have run . /daily.sh
Still have the wrong message
[root@librenms librenms]# ./daily.sh
Re-running /opt/librenms/daily.sh as librenms user
Checking PHP version OK
Updating to latest codebase OK
Updated from 5ad28c920248106677170d893a06c8cbf929f2d1 to 0c49e9b0232c1c0fcbd3b39176adf99e26fe825c OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK
[root@librenms librenms]# ./validate.php
Component
Version
LibreNMS
1.33-89-g0c49e9b
DB Schema
215
PHP
7.0.24
MySQL
5.5.56-MariaDB
RRDTool
1.4.8
SNMP
NET-SNMP 5.7.2
====================================
[OK] Database connection successful
[OK] Database schema correct
[FAIL] Discovery has not completed in the last 24 hours.
[FIX] Check the cron job to make sure it is running and using discovery-wrapper.py
SELECT hostname FROM devices WHERE last_discovered <= DATE_ADD(NOW(), INTERVAL - 24 HOUR) AND ignore = 0 AND disabled = 0 AND status = 1 AND snmp_disable = 0;
That will show you the hostnames of devices that haven’t completed in the last 24 hours. Run ./discovery.php -h HOSTNAME and see how long it takes to run