Home Directory Plugins Hardware Network Gear HP HP Procurve SNMP monitor

HP Procurve SNMP monitor

Bookmark and Share

Rating
3 votes
Favoured:
0
Current Version
0.1a
Last Release Date
2012-08-10
Compatible With
  • Nagios 3.x
Owner
E-mail
License
GPL
Hits
22825
Files:
FileDescription
check_snmp_hp-procurve.shcheck_snmp_hp-procurve.sh
This plugin checks the health of HP Procurve switches via SNMP queries.
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 (3)
byti, August 22, 2012
1 of 1 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
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