Monitoring_HP_Procurve
How to monitoring HP-Procurve Switches with the CHECK_SNMP Build-in Plugin.
The Checkcommands.cfg and services.cfg are also attached..
Service definition CPUTEMP
define service{
use generic-service ; Name of service template to use
host_name HP-DRAKEN-1,HP-DRAKEN-2,HP-SW2824-C,HP-SWITCH-6108,HP-SW2824-M
service_description CPU-TEMP
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups switch-admins
notification_interval 240
notification_period 24x7
notification_options c,r
check_command check_hptemp!nagios!4!3:5
}
Service definition FAN
define service{
use generic-service ; Name of service template to use
host_name HP-DRAKEN-1,HP-DRAKEN-2,HP-SW2824-C,HP-SWITCH-6108,HP-SW2824-M
service_description FAN-STATUS
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups switch-admins
notification_interval 240
notification_period 24x7
notification_options c,r
check_command check_hpfan!nagios!4!3:5
}
Service definition MEM-FREE
define service{
use generic-service ; Name of service template to use
host_name HP-DRAKEN-1,HP-DRAKEN-2,HP-SW2824-C,HP-SWITCH-6108,HP-SW2824-M
service_description MEM-FREE
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups switch-admins
notification_interval 240
notification_period 24x7
notification_options c,r
check_command check_hpmemoryfree!nagios!2000:30000000!1000:30000000
}
Service definition CPU
define service{
use generic-service ; Name of service template to use
host_name HP-DRAKEN-1,HP-DRAKEN-2,HP-SW2824-C,HP-SWITCH-6108,HP-SW2824-M
service_description CPU
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups switch-admins
notification_interval 240
notification_period 24x7
notification_options c,r
check_command check_hp_cpu!nagios!95:90!100:95
}
Command definition
define command{
command_name check_hpmemoryfree
command_line $USER1$/check_snmp -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
}
check_hp_cpu
define command{
command_name check_hp_cpu
command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o .1.3.6.1.4.1.11.2.14.11.5.1.9.6.1.0 -t 5 -w $ARG2$ -c $ARG3$ -u % -l "5min cpu"
}
check_hpfan
define command{
command_name check_hpfan
command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o .1.3.6.1.4.1.11.2.14.11.1.2.6.1.4.1 -w $ARG2$ -c $ARG3$ -l 'Fan status'
}
check_hppower
define command{
command_name check_hppower
command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o .1.3.6.1.4.1.11.2.14.11.1.2.6.1.4.2 -w $ARG2$ -c $ARG3$ -l 'Power Supply status'
}
check_hptemp
define command{
command_name check_hptemp
command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o .1.3.6.1.4.1.11.2.14.11.1.2.6.1.4.4 -w $ARG2$ -c $ARG3$ -l 'Temprature status'
}