Librenms not detecting my system metrics

what is the error when you manually run the poller

./poller.php -h localhost

Strange, No issue in polling.
issue with only localhost, all other devices metrics are good ?

Yes, everything else works, except Weathermap, it does not save created maps.

check for any errors in poller_wrapper.log (assuming you are using cron based polling )

cat poller_wrapper.log | grep “device 98”

I’m not such an advanced Librenms user yet, I don’t understand where to look?
I also noticed that sometimes, something happens and the node starts polling for a short time.

from the screenshot, it is clear that host is not responding to poller.
to check the poller log,

login to librenms server through cli, after that apply below commands to check the logs

sudo su librenms
cd /opt/librenms/logs
cat poller_wrapper.log | grep “device 98”

post the output

Only this:
librenms:/data/logs$ cat poller_wrapper.log | grep “device 98”
2022-07-13 18:05:25,734 :: INFO :: worker Thread-5 finished device 98 in 2 seconds

manual poller is working, scheduled poll is working. still no device data.
sorry, not sure what else to check
lets see if others have any idea

I completely uninstalled the current installation and reinstalled everything. But the data still didn’t show up.

I manually ran the poller and the information was updated.
But after 5 minutes the node turned red. So the automatic poller is not working?

This is what I was able to see in the console:

I do not understand why in manual mode the node is polled, in automatic mode it is not available?

Try below setting in config.php. This is not a solution , but to see if its responding by increasing the time

$config[‘snmp’][‘timeout’] = 5;
$config[‘snmp’][‘retries’] = 10;
$config[‘snmp’][‘exec_timeout’] = 1200;

above timers are in seconds

I tried to do as the instructions say, put config.php in /data/config but it didn’t work. I set the parameters through the console:
lnms config:set snmp.timeout 5
lnms config:set snmp.retries 10
lnms config:set snmp.exec_timeout 1200

It’s been about 15 minutes, nothing has changed.

ok. you are running librenms in docker
can u add container hostname instead of localhost

1 Like

I had to delete localhost first. Added librenms, now I’m watching.

It works!

Maybe this should be added to the documentation?

Can you tell me what the default values were, I want them back.
And thanks for your help, it’s been almost 24 hours and everything is working fine.

lnms config:set snmp.timeout 1
lnms config:set snmp.retries 5
lnms config:set snmp.exec_timeout 1200

Ref: Configuration Docs - LibreNMS Docs

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.