HP

HP Procurve SNMP monitor

Description:

This plugin checks the health of HP Procurve switches via SNMP queries.

Current Version

0.1a

Last Release Date

2012-08-10

Compatible With

  • Nagios 3.x

License

GPL


Project Files
Project Notes
******************************************************************** NOTE ADDED ON 10th December 2016: Many people confirmed that the plugin doesn't work with newer HP firmwares. HP has removed (or obscured) the info about the health status of Procurve switches from SNMP OIDs so, unfortunately, the plugin is to be considered outdated and doesn't work with newer gear. ******************************************************************** NOTE ADDED ON 14TH June 2016: It seems that newer HP firmwares change the OIDs of some switches, by hiding the hardware health status of the components. This unfortunately renders the script useless. If you see that the plugin doesn't work anymore try these commands; they should give the following output. Otherwise it might be that the hardware info is saved elsewhere in the OID or HP decided to totally hide them from SNMP queries, in which case there's nothing I can do to make it work. $ snmpwalk -v 2c -c public 10.10.10.1 .1.3.6.1.4.1.11.2.14.11.1.2.6.1.7 SNMPv2-SMI::enterprises.11.2.14.11.1.2.6.1.7.1 = STRING: "Fan Sensor" SNMPv2-SMI::enterprises.11.2.14.11.1.2.6.1.7.2 = STRING: "Power Supply 1 Sensor" SNMPv2-SMI::enterprises.11.2.14.11.1.2.6.1.7.3 = STRING: "Power Supply 2 Sensor" SNMPv2-SMI::enterprises.11.2.14.11.1.2.6.1.7.4 = STRING: "Power Supply 3 Sensor" SNMPv2-SMI::enterprises.11.2.14.11.1.2.6.1.7.5 = STRING: "Power Supply 4 Sensor" SNMPv2-SMI::enterprises.11.2.14.11.1.2.6.1.7.6 = STRING: "RPS Power Supply Sensor" SNMPv2-SMI::enterprises.11.2.14.11.1.2.6.1.7.7 = STRING: "Over-temperature Sensor" SNMPv2-SMI::enterprises.11.2.14.11.1.2.6.1.7.8 = STRING: "External Power Supply 1 Sensor" SNMPv2-SMI::enterprises.11.2.14.11.1.2.6.1.7.9 = STRING: "External Power Supply 2 Sensor" $ snmpwalk -v 2c -c public 10.10.10.1 .1.3.6.1.4.1.11.2.14.11.1.2.6.1.4 SNMPv2-SMI::enterprises.11.2.14.11.1.2.6.1.4.1 = INTEGER: 4 SNMPv2-SMI::enterprises.11.2.14.11.1.2.6.1.4.2 = INTEGER: 4 SNMPv2-SMI::enterprises.11.2.14.11.1.2.6.1.4.3 = INTEGER: 4 SNMPv2-SMI::enterprises.11.2.14.11.1.2.6.1.4.4 = INTEGER: 4 SNMPv2-SMI::enterprises.11.2.14.11.1.2.6.1.4.5 = INTEGER: 4 SNMPv2-SMI::enterprises.11.2.14.11.1.2.6.1.4.6 = INTEGER: 5 SNMPv2-SMI::enterprises.11.2.14.11.1.2.6.1.4.7 = INTEGER: 4 SNMPv2-SMI::enterprises.11.2.14.11.1.2.6.1.4.8 = INTEGER: 4 SNMPv2-SMI::enterprises.11.2.14.11.1.2.6.1.4.9 = INTEGER: 4 ********************************************************************** The plugin uses 'snmpwalk' and 'snmpget' commands, so you have to add them; for instance in Ubuntu they are in the 'snmp' package: $ sudo apt-get install snmp Just copy the plugin in the right directory, e.g.: /usr/lib/nagios/plugins/ and remember to make the file executable. Then in /etc/nagios3/commands.cfg add: define command { command_name check_snmp_hp-procurve command_line $USER1$/check_snmp_hp-procurve.sh public $HOSTADDRESS$ } and in Nagios services' definition file: define service { hostgroup_name switches service_description HP-hw check_command check_snmp_hp-procurve use generic-service notification_period work } That's it.
Reviews (7) Add a Review
Script works, but Nagios status "unknown"
by mschau, July 31, 2017

Hi! The script works "HP swtich hardware is OK" But the status in Nagios is "unknown" Any hints on that? Thank you!



UNKNOWN
by jriker1, December 31, 2015

Installed per instructions. My Procurve 1810G (J9450A) switch reported UNKNOWN.



Great Plugin
by ropi, August 31, 2015

Plugin works fine with Nagios 4.0.8 but you have to copy the sh file to the folder /usr/local/nagios/libexec Thanks for the great support!



Works as advertised
by dlundh, October 31, 2013

Works right out of the box with 2610-24 and 2510-24.



Some Trouble - ProCurve Plugin
by jbahou, January 31, 2013

I followed directions but I get the following in the web-int: (Return code of 127 is out of bounds - plugin may be missing) can anyone help me out? Thanks,



hp 2910s
by TrevThorpe, October 31, 2012

Minor modifications to get this to work on my 2910s. In your service definitions: CPU check_hp_cpu!community!90!195 MEM-FREE check_hpmemoryfree!community!@2000:30000000!@1000:30000000



thanks
by ti, August 31, 2012

works right out of the box with all of our HP ProCurve switches - 2810-48G - 8000 M - 4000 M - 4108GL - 2848 - 2524 great job



Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
4.2 (10)
Favorites
2
Views
103,748