hp switches and checking snmp
Andre Bergei
andre.bergei at ementor.no
Mon May 9 12:48:15 CEST 2005
> Is anyone using nagios to monitor hp switches with the
> check_snmp plugin? All we want to know is if there is an
> error (like bad fan) in the logs and if there is any huge
> traffic. I have done this with Procurv manager but i would
> prefer to use nagios incase we have to switch brands (to cisco).
>
> We are using nagios 1.3 on debian sarge right now.
Use the check_snmp plugin at these OID's
Hpmemoryfree = .1.3.6.1.4.1.11.2.14.11.5.1.1.2.1.1.1.6.1
Cpu = .1.3.6.1.4.1.11.2.14.11.5.1.9.6.1.0
Fan = .1.3.6.1.4.1.11.2.14.11.1.2.6.1.4.1
Power = .1.3.6.1.4.1.11.2.14.11.1.2.6.1.4.2
Temprature = .1.3.6.1.4.1.11.2.14.11.1.2.6.1.4.4
My check_commands are like this:
define command{
command_name check_hpmemoryfree
command_line $USER1$/check_snmpp -H $HOSTADDRESS$ -C $ARG1$ -o .1.3.6.1.4.1.11.2.14.11.5.1.1.2.1.1.1.6.1 -t 5 -w $ARG2$ -c $ARG3$ -u bytes -l free
}
define command{
command_name hpsw_cpu
command_line $USER1$/check_snmpp -H $HOSTADDRESS$ -o .1.3.6.1.4.1.11.2.14.11.5.1.9.6.1.0 -t 5 -w '95:90' -c '100:95' -C $ARG1$ -u % -l "5min cpu"
}
define command{
command_name check_hpfan
command_line $USER1$/check_snmpp -H 192.168.33.10 -C chero -o .1.3.6.1.4.1.11.2.14.11.1.2.6.1.4.1 -w 4 -c 3:5 -l 'Fan status'
}
define command{
command_name check_hppower
command_line $USER1$/check_snmpp -H 192.168.33.10 -C chero -o .1.3.6.1.4.1.11.2.14.11.1.2.6.1.4.2 -w 4 -c 3:5 -l 'Power Supply status'
}
define command{
command_name check_hptemp
command_line $USER1$/check_snmpp -H 192.168.33.10 -C chero -o .1.3.6.1.4.1.11.2.14.11.1.2.6.1.4.4 -w 4 -c 3:5 -l 'Temprature status'
}
You might want to download the hp managements MIB's and include them in the net-snmp MIB's folder.
For interface speed and error check, use any mib2 compiant plugin, there are
Several out there.
Best
/andrè
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list