Michael_62939
Apr 23, 2012Nimbostratus
Monitoring via SNMP
I have been searching, hashing and working on trying to get monitoring via SNMP for my LTM 1600 boxes. I understand SNMP but there is something that I"m missing I presume.
I was able to load a MIB Browser and formulate the OID for CPUs (OIDs: .1.3.6.1.4.1.3375.2.1.7.5.2.1.11.1.48.1,.1.3.6.1.4.1.3375.2.1.7.5.2.1.11.1.48.2). I used the same formula to work on getting other metrics and I have not been able to. I can pull data via MIB Browser and running an snmpwalk. But I can not get the same check as CPU to pull data.
Using the snmpwalk from OID: .1.3.6.1.4.1.3375.2.1.1.2 (found in forums), I get a long list. Pulling out one of those, I can get a data response.
$ snmpwalk -v 2c -c xxxxxx host SNMPv2-SMI::enterprises.3375.2.1.1.2.21.16.0
SNMPv2-SMI::enterprises.3375.2.1.1.2.21.16.0 = Counter64: 2
I convert it to it's full OID, and it comes back.
$ snmpwalk -v 2c -c xxxxxx host .1.3.6.1.4.1.3375.2.1.1.2.21.16.0
SNMPv2-SMI::enterprises.3375.2.1.1.2.21.16.0 = Counter64: 2
But I then turn that into a host check, I get an error.
$ ./check_snmp -v -H host -C xxxxxx -o .1.3.6.1.4.1.3375.2.1.1.2.21.16.0
/usr/bin/snmpget -t 1 -r 5 -m '' -v 1 [authpriv] idcbip01.host.com:161 .1.3.6.1.4.1.3375.2.1.1.2.21.16.0
External command error: Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: iso.3.6.1.4.1.3375.2.1.1.2.21.16.0
What am I missing? Both the MIB Browser and the snmpwalk will return data but the same in snmpget wont.