Here is the output from both commands:
Code: Select all
nagios@nagiossrv1:[/usr/local/nagios/libexec]: ./check_icmp -H 10.40.21.145 -v
ttl set to 64
Setting alarm timeout to 10 seconds
packets: 5, targets: 1
target_interval: 0.000, pkt_interval 80.000
crit.rta: 500.000
max_completion_time: 3400.000
crit = {500000, 80%}, warn = {200000, 40%}
pkt_interval: 80000 target_interval: 0 retry_interval: 0
icmp_pkt_size: 76 timeout: 10
handle_random_icmp(0x7ffd69aab290, 0x7ffd69aab120)
handle_random_icmp(0x7ffd69aab290, 0x7ffd69aab120)
handle_random_icmp(0x7ffd69aab290, 0x7ffd69aab120)
handle_random_icmp(0x7ffd69aab290, 0x7ffd69aab120)
handle_random_icmp(0x7ffd69aab290, 0x7ffd69aab120)
33.226 ms rtt from 10.40.21.145, outgoing ttl: 64, incoming ttl: 246, max: 33.226, min: 33.226
handle_random_icmp(0x7ffd69aab290, 0x7ffd69aab120)
handle_random_icmp(0x7ffd69aab290, 0x7ffd69aab120)
handle_random_icmp(0x7ffd69aab290, 0x7ffd69aab120)
handle_random_icmp(0x7ffd69aab290, 0x7ffd69aab120)
handle_random_icmp(0x7ffd69aab290, 0x7ffd69aab120)
32.742 ms rtt from 10.40.21.145, outgoing ttl: 64, incoming ttl: 246, max: 33.226, min: 32.742
handle_random_icmp(0x7ffd69aab290, 0x7ffd69aab120)
handle_random_icmp(0x7ffd69aab290, 0x7ffd69aab120)
handle_random_icmp(0x7ffd69aab290, 0x7ffd69aab120)
handle_random_icmp(0x7ffd69aab290, 0x7ffd69aab120)
handle_random_icmp(0x7ffd69aab290, 0x7ffd69aab120)
33.308 ms rtt from 10.40.21.145, outgoing ttl: 64, incoming ttl: 246, max: 33.308, min: 32.742
34.087 ms rtt from 10.40.21.145, outgoing ttl: 64, incoming ttl: 246, max: 34.087, min: 32.742
handle_random_icmp(0x7ffd69aab290, 0x7ffd69aab120)
handle_random_icmp(0x7ffd69aab290, 0x7ffd69aab120)
handle_random_icmp(0x7ffd69aab290, 0x7ffd69aab120)
handle_random_icmp(0x7ffd69aab290, 0x7ffd69aab120)
handle_random_icmp(0x7ffd69aab290, 0x7ffd69aab120)
33.123 ms rtt from 10.40.21.145, outgoing ttl: 64, incoming ttl: 246, max: 34.087, min: 32.742
icmp_sent: 5 icmp_recv: 5 icmp_lost: 0
targets: 1 targets_alive: 1
OK - 10.40.21.145: rta 33.297ms, lost 0%|rta=33.297ms;200.000;500.000;0; pl=0%;40;80;; rtmax=34.087ms;;;; rtmin=32.742ms;;;;
targets: 1, targets_alive: 1, hosts_ok: 1, hosts_warn: 0, min_hosts_alive: -1
Code: Select all
nagios@nagiossrv1:[/usr/local/nagios/libexec]: ./check_icmp -H 10.40.21.145 -w 10,2% -c 20,5%
CRITICAL - 10.40.21.145: rta 32.897ms, lost 0%|rta=32.897ms;10.000;20.000;0; pl=0%;2;5;; rtmax=33.179ms;;;; rtmin=32.707ms;;;;
Code: Select all
nagios@nagiossrv1:[/usr/local/nagios/libexec]: ./check_ping -H 10.40.21.145 -w 10,2% -c 20,5%
PING CRITICAL - Packet loss = 0%, RTA = 33.16 ms|rta=33.162998ms;10.000000;20.000000;0.000000 pl=0%;2;5;0