How do you handle your LibreNMS discovery when you have devices in multiple networks?

For reasons I will not get into here, we have some Linux servers with interfaces on multiple networks. In doing a scan today, I saw duplicate entries for the same host because of it.

How are you handling multiple network connections for the same host? Are you just having SNMP listen on one interface? Are you allowing LibreNMS to pick it up and just disabling the one you dont want it to poll?

AFAIK LibreNMS only picks up one device and you have to force it to pick up more if the system name is the same.

the same host will have two different hostnames. For example: host1.local and host1.example.com. Each with separate IP addresses. Only certain devices are doing this and not all devices so that is why I am trying to find a solution.

I’m pretty sure, that if it’s the same system name in SNMP then it will not create 2 devices.

Is lnms config:get allow_duplicate_sysName returning true? If so, set it to false lnms config:set allow_duplicate_sysName false

1 Like

Thank you. That was it. It was in the config and I helped my future self out by putting in why too.

I put it in there because I have some really old HP PDUs with old firmware (like v1.0.1) and they all come in with the same sysName.0. I am looking to upgrade them since we arent going to replace them anytime soon. Just thankful, there is a spare one and I dont have to do this to prod!

Appreciate the help!!!

1 Like

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