I have already added hundreds devices but without port discovery.
How can I now discovery ports and start draw graphs for them?
I have already added hundreds devices but without port discovery.
How can I now discovery ports and start draw graphs for them?
Did you try with discovery.php script?
My fault my question isnât clear.
How to enable discovery and poller on all existing devices? (excluding manual action one by one)
Polling and discovery tasks are in the cron jobs in /opt/librenms/librenms.nonroot.cron and you should copy it in /etc/cron.d/librenms
Did you mean that, when you added the device you disabled manually the ports
discovery&poller modules and now you want to enable on all of them again?
I added hundreds devices but without ports discovery&poller modules.
But now I need to monitor ports so I could manually enable ports discovery&poller modules for every device or maybe is another way more automatic.
But how you added them without that modules? By default they are autodiscovered so, unless you disabled them in each device by hand, they are enabled.
If you was disabling them by hand when adding, I suggest you to directly update the database or you will have to go one by one doing it.
If you mean instead of enable it one by one from UI like in the screenshot:
UPDATE âportsâ SET âdisableâ = 0 WHERE <condition> LIKE â%<value>%â;
UPDATE âportsâ SET âignoreâ = 0 WHERE <condition> LIKE â%<value>%â;
In my config.php poller&discovery for ports are false:
$config['poller_modules']['ports'] = false;
$config['discovery_modules']['ports'] = false;
Because previously I use SATA disk there was I/O issue. Now I have good SSD drive and I need to monitor all ports.
Yes I can query direct DB but I canât find any entries in table devices_attribs for devices which I want to monitor ports.
I think I have to manually click on each device and change poller & discovery ports settings or invent a database query that will take care of the matter.
Are ports discovered in your environment? If yes, ports are in âportsâ table in the DB, see my previous message.
Port arenât discovered see my previous post.
In my config.php poller&discovery for ports are false:
$config['poller_modules']['ports'] = false;
$config['discovery_modules']['ports'] = false;
Port arenât discovered see my previous post with config.php settings.
So as I said before I think you must run the discovery.php script; with the -h all option:
# Poll all devices
$ ./discovery.php -h all
but first you have to change your config file to
$config[âpoller_modulesâ][portsâ] = true;
$config[âdiscovery_modulesâ][âportsâ] = true;
Thanks @Rick it was too obvious