With Nagios using check_icmp is the way to go, it better and faster, below is an example configuration directive for setting the check-host-alive command which will be used by each host check.

# ‘check-host-alive’ command definition
define command{
command_name    check-host-alive
command_line    $USER1$/check_icmp -H $HOSTADDRESS$ -w 30,5% -c 100,20% -p 1


time ./check_icmp -H -n 5

OK – rta 0.519ms, lost 0%|rta=0.519ms;200.000;500.000;0;pl=0%;40;80;;
0.00u 0.01s 0:00.33 3.0%

time ./check_ping -w 100,100% -c 500,100% -H
PING OK – Packet loss = 0%, RTA = 0.00 ms
0.01u 0.00s 0:04.01 0.2%

time ./check_fping -H -n 5
FPING OK – (loss=0%, rta=0.640000 ms)|loss=0%;;;0;100 rta=0.000640s;;;0.000000
0.00u 0.01s 0:04.56 0.2%

Leave a comment

Your email address will not be published. Required fields are marked *

Blue Captcha Image


Protected by WP Anti Spam

Hit Counter provided by dental implants orange county