]>
Commit | Line | Data |
---|---|---|
d9fc610a ER |
1 | # 'check_ping' command definition |
2 | define command { | |
70d3f139 | 3 | command_name check_ping |
fe5530b1 | 4 | command_line /usr/lib/nagios/plugins/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5 $ARG3$ |
d9fc610a | 5 | } |
08e9600e ER |
6 | |
7 | # This command checks to see if a host is "alive" by pinging it | |
8 | # The check must result in a 100% packet loss or 5 second (5000ms) round trip | |
9 | # average time to produce a critical error. | |
10 | # Note: Only one ICMP echo packet is sent (determined by the '-p 1' argument) | |
11 | ||
12 | # Command to check to see if a host is "alive" (up) by pinging it | |
13 | define command { | |
70d3f139 | 14 | command_name check-host-alive |
fe5530b1 | 15 | command_line /usr/lib/nagios/plugins/check_ping -H $HOSTADDRESS$ -w 100,99% -c 5000,100% -p 1 $ARG1$ |
08e9600e | 16 | } |
9fc734b5 ER |
17 | |
18 | define service { | |
19 | use generic-service | |
20 | name ping | |
21 | service_description ping | |
22 | register 0 | |
23 | ||
24 | normal_check_interval 5 | |
25 | retry_check_interval 1 | |
26 | notification_interval 120 | |
27 | notification_options c,r | |
28 | ||
29 | check_command check_ping!100.0,20%!500.0,60% | |
30 | } |