Add device fails yet snmpwalk succeeds

I have a new installation of LibreNMS and am having issues adding some devices and I am at a loss as to why.

Out of 20 HP 1920 switches I can only get about one-third to be added using the GUI or command-line. Invoking snmpwalk is successful and the devices can be added using PRTG.

Below shows output of cli and web commands.

[email protected]:/opt/librenms# snmpwalk -v2c -c public 192.168.5.110
iso.3.6.1.2.1.1.1.0 = STRING: "1920-24G Switch Software Version 5.20.99, Release 1112
Copyright©2010-2016 Hewlett Packard Enterprise Development LP"
iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1.25506.11.1.166
iso.3.6.1.2.1.1.3.0 = Timeticks: (351163386) 40 days, 15:27:13.86

[email protected]:/opt/librenms# ./addhost.php 192.168.5.110 public v2c 161 udp
Could not connect, please check the snmp details and snmp reachability

GUI
Adding host 192.168.5.110 community public port 161 using udp
Could not connect, please check the snmp details and snmp reachability

Duplicate sysName?

Indeed, that was the case. All devices now added. Thanks for the suggestion.

I’ve created a pull request to make this clearer when adding devices which have duplicate sysName’s

Hi laf,

Can you share the pull request for duplicate sysName’s please?

Thanks

See here -> https://docs.librenms.org/#Support/Configuration/#add-host-settings