Forum Discussion

Michael_62939's avatar
Michael_62939
Icon for Nimbostratus rankNimbostratus
Apr 23, 2012

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.

 

1 Reply

  • Your script is trying to using SNMP v1. Specifying v2c manually in the command works on my 10.2.3 box.

     

    You can verify that this works locally on the bigip by using snmpget from the CLI.

     

     

    This one returns the same error as you had

     

    [root@mg10:Active] config snmpget -v 1 -c public localhost .1.3.6.1.4.1.3375.2.1.1.2.21.16.0

     

    Error in packet Reason: (noSuchName)

     

    There is no such variable name in this MIB.

     

    Failed object: F5-BIGIP-SYSTEM-MIB::sysGlobalTmmStatServerCurConns.0

     

     

    This one works fine

     

    [root@mg10:Active] config snmpget -v 2c -c public localhost .1.3.6.1.4.1.3375.2.1.1.2.21.16.0

     

    F5-BIGIP-SYSTEM-MIB::sysGlobalTmmStatServerCurConns.0 = Counter64: 16