Hi,
I’m having problems with discovery on a particular device, a Benning UPS. Discovery successfully finds the OS but then changes it back to Generic right after. It’s a longshot but could it possibly be because there’s a / in the sysDescription? That’s the only thing I’ve found that differs it from other OS types that I have defined. Here’s the output from discovery:
LibreNMS Discovery
Version info:
Commit SHA: ccfd32457ac369eb1d1e40f91c5afe41d2ba3f7e
Commit Date: 1568659404
DB Schema: 2019_09_05_153524_create_notifications_attribs_index (141)
PHP: 7.2.19-0ubuntu0.18.04.2
MySQL: 10.1.41-MariaDB-0ubuntu0.18.04.1
RRDTool: 1.7.0
SNMP: NET-SNMP 5.7.3
==================================DEBUG!
X.X.X.X 2742 generic SNMP[‘/usr/bin/snmpget’ ‘-v2c’ ‘-c’ ‘public’ ‘-Ovq’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:X.X.X.X:161’ ‘SNMPv2-MIB::sysDescr.0’]
SNMP[‘/usr/bin/snmpget’ ‘-v2c’ ‘-c’ ‘public’ ‘-Ovqn’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:X.X.X.X:161’ ‘SNMPv2-MIB::sysObjectID.0’]
SNMP[‘/usr/bin/snmpget’ ‘-v2c’ ‘-c’ ‘public’ ‘-Oqv’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:X.X.X.X:161’ ‘.1.3.6.1.4.1.1166.1.621.14.2.0’]
Device os was updated to benning-ups!
Load disco module core
SNMP[‘/usr/bin/snmpget’ ‘-v2c’ ‘-c’ ‘public’ ‘-OUQn’ ‘-m’ ‘SNMPv2-MIB’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:X.X.X.X:161’ ‘sysName.0’ ‘sysObjectID.0’ ‘sysDescr.0’]
Runtime for discovery module ‘core’: 0.0090 seconds with 1048 bytes
SNMP: [5/0.04s] MySQL: [7/0.06s] RRD: [0/0.00s]
Unload disco module core
Load disco module os
SNMP[‘/usr/bin/snmpget’ ‘-v2c’ ‘-c’ ‘xxx’ ‘-Ovq’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:X.X.X.X:161’ ‘SNMPv2-MIB::sysDescr.0’]
SNMP[‘/usr/bin/snmpget’ ‘-v2c’ ‘-c’ ‘xxx’ ‘-Ovqn’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:X.X.X.X:161’ ‘SNMPv2-MIB::sysObjectID.0’]
SNMP[‘/usr/bin/snmpget’ ‘-v2c’ ‘-c’ ‘xxx’ ‘-Oqv’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:X.X.X.X:161’ ‘.1.3.6.1.4.1.1166.1.621.14.2.0’]
SNMP[‘/usr/bin/snmpget’ ‘-v2c’ ‘-c’ ‘xxx’ ‘-Oqv’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:X.X.X.X:161’ ‘.1.3.6.1.4.1.12148.10.2.6.0’]
SNMP[‘/usr/bin/snmpget’ ‘-v2c’ ‘-c’ ‘xxx’ ‘-Oqv’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:X.X.X.X:161’ ‘.1.3.6.1.4.1.39165.1.1.0’]
SNMP[‘/usr/bin/snmpget’ ‘-v2c’ ‘-c’ ‘xxx’ ‘-Oqv’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:X.X.X.X:161’ ‘.1.3.6.1.4.1.21111.1.1.1.6.0’]
SNMP[‘/usr/bin/snmpget’ ‘-v2c’ ‘-c’ ‘xxx’ ‘-Oqv’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:X.X.X.X:161’ ‘1.3.6.1.4.1.4515.1.3.6.1.1.1.2.0’]
SNMP[‘/usr/bin/snmpget’ ‘-v2c’ ‘-c’ ‘xxx’ ‘-Oqv’ ‘-M’ ‘/opt/librenms/mibs’ ‘udp:X.X.X.X:161’ ‘.1.3.6.1.4.1.7465.20.2.9.1.2.1.3.1.2’]
Changed OS: Generic Device (generic)
Runtime for discovery module ‘os’: 0.1050 seconds with 54008 bytes
SNMP: [8/0.07s] MySQL: [4/0.03s] RRD: [0/0.00s]