Page 1 of 1

Can't get HP ProCurve MIBs working

Posted: Mon Dec 31, 2012 6:49 pm
by jbruyet
Hey all, I'm trying to monitor my ProCurve switches and I thought I had made progress but I haven't. Using the directions I found here:

http://blog.davidvassallo.me/2010/03/02 ... to-nagios/

I downloaded the MIB file for the ProCurve 2524 switch (it's my test switch for this project) and dumped all of the MIBs into a folder on my computer. I downloaded the iReasoning MIB Browser and loaded all of the MIBs into it, connected to the switch and then went search for a fan MIB. I found hpicFanState and thought I'd start there so I put the MIB, .1.3.6.1.4.1.11.2.14.11.5.1.54.2.1.1.4, in my switch.cfg file like so:

Code: Select all

# Monitor an HP Fan
define service{
        use                     generic-service
        host_name               OS-2524SrvRck
        service_description     Switch fan state
        check_command           check_snmp! -C public -o .1.3.6.1.4.1.11.2.14.11.5.1.54.2.1.1.4 -m all
        }
BUT, when I check my Nagios server I see this error:

Code: Select all

	
OS-2524SrvRck
	
Switch fan state
	
UNKNOWN 	12-31-2012 15:36:39 	0d 0h 9m 24s 	3/3 	External command error: Undefined OBJECT-GROUP (dot11PhyFHSSComplianceGroup): At line 2353 in /usr/share/snmp/mibs/ieee80211.mib 
I tried running the OID from SNMPGET too but I get this error:

Code: Select all

[root@link jobee]# snmpget -v 2c -c public 192.168.2.15 1.3.6.1.4.1.11.2.14.11.5.1.54.2.1.1.4
SNMPv2-SMI::enterprises.11.2.14.11.5.1.54.2.1.1.4 = No Such Object available on this agent at this OID
Is the problem with the OID or the syntax or something else?

Thanks,

Joe B

Re: Can't get HP ProCurve MIBs working

Posted: Tue Jan 01, 2013 5:08 pm
by jsmurphy
Hey Joe,

Something about that oid string doesn't seem right, it's long... almost abnormally long. I don't have any pro-curves myself but I did find this: http://www.oidview.com/mibs/11/HP-ICF-OID.html

Which has the fan OID of this: 1.3.6.1.4.1.11.2.3.7.8.3.2 which seems a little more reasonable. Try doing an snmpget with that oid instead and see how you go.

Re: Can't get HP ProCurve MIBs working

Posted: Wed Jan 02, 2013 2:08 pm
by jbruyet
Hey jsmurphy, thanks for the OID but no joy:

Code: Select all

[root@link objects]# snmpget -v 2c -c public 192.168.2.15 1.3.6.1.4.1.11.2.3.7.8.3.2
SNMPv2-SMI::enterprises.11.2.3.7.8.3.2 = No Such Object available on this agent at this OID
I'll take a look at that web site and see if I can find something that works.

Thanks,

Joe B

Re: Can't get HP ProCurve MIBs working

Posted: Wed Jan 02, 2013 4:53 pm
by jsmurphy
You could always do an snmpwalk on the top level and see what the oid tree looks like on the device:

snmpwalk -v 2c -c public 192.168.2.15 1.3.6.1.4.1.11

Re: Can't get HP ProCurve MIBs working

Posted: Mon Jan 28, 2013 12:35 am
by scottwilkerson
@jbruyet - Were you able to do the walk as jsmurphy suggested?