Code: Select all
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
}
Code: Select all
# Service definition MEM-FREE
define service{
use generic-service ; Name of service template to use
hostgroup switches
service_description MEM-FREE
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
notification_interval 240
notification_period 24x7
notification_options c,r
check_command check_hpmemoryfree!nagios!2000:30000000!1000:30000000
}
Code: Select all
MEM-FREE UNKNOWN 08-14-2012 14:54:32 0d 1h 48m 51s 3/3 External command error: Timeout: No Response from 192.168.2.20:161.
Code: Select all
[root@link libexec]# ./check_snmp -H 192.168.2.20 -o 1.3.6.1.4.1.11.2.14.11.5.1.1.2.1.1.1.6.1
SNMP OK - 24307576 | iso.3.6.1.4.1.11.2.14.11.5.1.1.2.1.1.1.6.1=24307576
Thanks,
Joe B