My monitoring software (Zabbix) has support for versions 1, 2c, and 3, but I use network discovery rules to find devices and automatically add them and attach them to templates with monitoring rules. The discovery SNMP agent I'm using is v1 since Ubiquiti only supports v1. I 'm sure with some modification I could work around it, but it may be a moot point... more below. The sysName started working after I set factory defaults (maybe I should have changed the name in the webif first though).
So I did a little more digging and here's what I found...
When I do a version 2c walk I see this:
- Code: Select all
# snmpwalk -v2c -c private -O e 10.0.22.231
SNMPv2-MIB::sysDescr.0 = STRING:
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (6177) 0:01:01.77
SNMPv2-MIB::sysContact.0 = STRING: Admin
SNMPv2-MIB::sysName.0 = STRING: COM_Netonix_Switch
SNMPv2-MIB::sysLocation.0 = STRING: COM
...
A version 1 walk doesn't work. Notice the sysObjectID is blank. I need the sysObjectID to assign Netonix switches to the appropriate monitoring templates automatically since I do this by manufacturer and other SNMP objects.
So I killed the mini_snmpd process and changed a couple of command line arguments...
- Code: Select all
# killall mini_snmpd
# mini_snmpd -d /jffs -c public -C "Some Admin" -V .1.3.6.1.4.1.46242 -D "Netonix Switch" -L "Tower XYZ[b]"[/b]
Removing "
-a" allows version 1 and 2c to both work. Adding "
-V .1.3.6.1.4.1.46242" sets the sysObjectID value. Here are my walk results now (v1 and v2c):
- Code: Select all
# snmpwalk -v2c -c public -O e 10.0.22.231
SNMPv2-MIB::sysDescr.0 = STRING: Netonix Switch
SNMPv2-MIB::sysObjectID.0 = OID: NETONIX-SWITCH-MIB::netonixSwitch
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (7442) 0:01:14.42
SNMPv2-MIB::sysContact.0 = STRING: Some Admin
SNMPv2-MIB::sysName.0 = STRING: COM_Netonix_Switch
SNMPv2-MIB::sysLocation.0 = STRING: Tower XYZ
...
# snmpwalk -v1 -c public -O e 10.0.22.231
SNMPv2-MIB::sysDescr.0 = STRING: Netonix Switch
SNMPv2-MIB::sysObjectID.0 = OID: NETONIX-SWITCH-MIB::netonixSwitch
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (23548) 0:03:55.48
SNMPv2-MIB::sysContact.0 = STRING: Some Admin
SNMPv2-MIB::sysName.0 = STRING: COM_Netonix_Switch
SNMPv2-MIB::sysLocation.0 = STRING: Tower XYZ
...
If we could get these changes made in the firmware it would really help with monitoring. Also, it would be great if the sysName value could be returned with the original spaces since we use this to identify devices in our monitoring software. I don't see any way to configure that in mini_snmpd since it uses the system hostname. Maybe the system hostname could include original spaces?