This is what would be needed in your hosts configuration to monitor using check_icmp rather than check_ping.
define service{
use generic-service ; Inherit values from a template
host_name SWITCH ; The name of the host the service is associated with
service_description PING ; The service description
check_command check_icmp!40.0,10%!100.0,40% ; The command used to monitor the service
normal_check_interval 5 ; Check the service every 5 minutes under normal conditions
retry_check_interval 1 ; Re-check the service every minute until its final/hard state is determined
}
This is what would be needed in the commands.cfg
# 'check-host-alive' command definition
define command{
command_name check_icmp
command_line $USER1$/check_icmp -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 2
}
This makes the assumption its going to do two pings, otherwise turn “-p 2” into $ARG3$ instead!