Home Directory Plugins Hardware Network Gear HP HP Procurve SNMP monitor

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

HP Procurve SNMP monitor

Rating
10 votes
Favoured:
2
Current Version
0.1a
Last Release Date
2012-08-10
Compatible With
  • Nagios 3.x
Owner
E-mail
License
GPL
Hits
82818
Files:
FileDescription
check_snmp_hp-procurve.shcheck_snmp_hp-procurve.sh
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
This plugin checks the health of HP Procurve switches via SNMP queries.
********************************************************************
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)
Hi!

The script works "HP swtich hardware is OK"
But the status in Nagios is "unknown"

Any hints on that?

Thank you!
byjriker1, December 24, 2015
1 of 1 people found this review helpful
Installed per instructions. My Procurve 1810G (J9450A) switch reported UNKNOWN.
Owner's reply

Maybe that model implements a different SNMP OID, unfortunately I don't have one here.
Do you have only that switch?
In case you can contact me via mail and I can give you a couple of commands to type. Actually you should have done that before rating 1 star.

byropi, August 9, 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!
bydlundh, October 8, 2013
1 of 1 people found this review helpful
Works right out of the box with 2610-24 and 2510-24.
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,
byTrevThorpe, October 17, 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
byti, August 22, 2012
1 of 2 people found this review helpful
works right out of the box with all of our HP ProCurve switches
- 2810-48G
- 8000 M
- 4000 M
- 4108GL
- 2848
- 2524

great job