Hi, I’m having trouble about Auto Discovery Feature of LIbrenms
I’m Running Librenms with Database server, RRDcached, and single distributed poller. I have few machines in my network installed and configured with SNMPv2. First time i added device manually(as required by manual), and then add more device by running ./snmp-scan.py. But then i realize that a single device can’t be added by auto discovery(either by running ./discovery.php -h new manually and running ./snmp-scan.py) What did went wrong? Please help me
Update :
Turn out i was able to discover my device by running ./snmp-scan.py but i’m still not be able to discover device through running ./discovery.php -h new manually nor automatically by cron
I already configured snmp on some device, i waited 24 hours but there is still no device added. Then i tried to run ./snmp-scan.py and all devices added!
./validate.php says discovery.php hasn’t run in 24 hours. Here’s my cron.d/librenms :
This may be that a device isn’t completing discovery in a quick enough time.
Run this in mysql select hostname, last_discovered from devices; see which device has not been updated in the last 24 hours then run ./discovery.php -h HOSTNAME and see how long it takes.
I saw all of my devices has not been updated in the last 24 hours. It doesn’t work either if i run manually(./discovery.php -h all). Here’s the output if i run ./discovery.php -h 192.168.2.247:
The devices table from mysql not updated and if i run ./validate.php it still get the Fail error.
So the problem is from the file discovery.php then? How do i fix it??
That means that either you don’t have a device with that hostname or it’s currently down. What does it look like in the webui? Screenshot the overview page?