Hello everybody,
I would like to know if I 've understood the difference between poller and discover modules.
I’m testing this software for my thesis. I use it in this way:
- I run snmp-scan.py in order to see which are the devices connected to my lan
- I wait for info to be dislayed
I think that when I run the snmp-scan, I will get info from the discovery modules which are selected, and every 300 seconds I get info from the polling modules.
Am I right?
Thanks in advance,
Alessandro
snmp-scan looks for alive hosts in your specified network then calls the addhost.php script to add the host into the database.
After-which your cronjob does the rest
#https://github.com/librenms/librenms/blob/master/librenms.nonroot.cron
So every 5 minutes your system runs discovery on any new devices, and your polling module runs then aswell. When you add a device to LibreNMS i think thats why it takes 5 minutes for all your info to appear.
*/5 * * * * librenms /opt/librenms/discovery.php -h new >> /dev/null 2>&1
*/5 * * * * librenms /opt/librenms/cronic /opt/librenms/poller-wrapper.py 16
and every 6 hours, discovery is run to all devices to check for any new interfaces etc… more info here https://docs.librenms.org/Support/Discovery%20Support/