31 lines
1.1 KiB
INI
31 lines
1.1 KiB
INI
# This command checks to see if a host is "alive" by pinging it
|
|
# The check must result in a 100% packet loss or 5 second (3000ms) round trip
|
|
# average time to produce a critical error.
|
|
# Note: Only one ICMP echo packet is sent (determined by the '-p 1' argument)
|
|
|
|
# 'check-host-alive' command definition
|
|
define command{
|
|
command_name check-host-alive
|
|
command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 5
|
|
}
|
|
|
|
define command{
|
|
command_name check-host-alive4
|
|
command_line $USER1$/check_ping -4 -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 2
|
|
}
|
|
|
|
define command{
|
|
command_name check-host-alive6
|
|
command_line $USER1$/check_ping -6 -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 2
|
|
}
|
|
|
|
# 'check_ping' command definition
|
|
define command{
|
|
command_name check_ping4
|
|
command_line $USER1$/check_ping -4 -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5
|
|
}
|
|
|
|
define command{
|
|
command_name check_ping6
|
|
command_line $USER1$/check_ping -6 -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5
|
|
}
|