-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autodiscover inserted duplicate devices into device table #1762
Comments
@Notre1 What would be handy is if you could delete a duplicated device (both of them - say gabswitch-idfc ) and then immediately run: ./discovery.php -h mccalla_mdfb -d -m discovery-protocols And post (and edited version if needs be) of that output pls. |
@laf OK, I did exactly as you said and it only added one of them back. I created a GIST for the output since it's over 5000 lines. (These are switches) |
I wiped the database and configured it fresh again, this time manually running discovery.php -h all from the cli before I enabled the cron job, and it didn't duplicate any devices this time. Not sure what went on during that initial discovery, but all looks good now. |
@Notre1 Thanks for the all the debugging. The last thing, if you have the output from /opt/librenms/logs/librenms.log for 2015-08-24 18:30 - 2015-08-24 18:55 that could indicate if multiple discovery processes were running (which really shouldn't happen). |
@laf The log output is below. It does look like there was some overlap in the discovery processes. I guess I should adjust the cron job.
|
That does look like its overlapped. The cron by itself is correct though don't alter that. |
I have seen multiple device entries for the same physical device due to multiple IP addresses on the same device. Can the discovery process have an option to allow or disallow additional devices if that serial number already exists in the database? |
I installed LibreNMS on Ubuntu Server 14.04 using the installation instructions in the docs, including creating a cronjob by copying the
librenms.nonroot.cron
file. Added one initial device and then let autodiscovery add the rest, as I've done before in Observium.My
config.php
file is pretty much stock, except for adding a few more values to the snmp community array. (eg.$config['snmp']['community'] = array("public", "ro1", "ro2", "42community", "pub2", "ro3", "ro4");
)When I started working on it this morning, I noticed that I had duplicate devices:
The text was updated successfully, but these errors were encountered: