False packet lost alert from Nagios
Posted: Thu May 29, 2014 5:23 pm
Hello,
I am getting false packet lost alert for the servers from Nagios.
Nagios showing packet lost. Please find the details for the same and suggest me on the same.
check_ping command definition:-
Service:-
Edit:
Hello,
When I am running ping command manually not getting any packet lost.
Ping server 1.1.1.1 from Nagios:-
Thanks,
Imran Khan.
Mode Note: Merged your two posts, please edit your previous post if you are the last poster instead of replying to yourself. Also be sure to wrap your code/cli output in CODE tags.
I am getting false packet lost alert for the servers from Nagios.
Nagios showing packet lost. Please find the details for the same and suggest me on the same.
check_ping command definition:-
Code: Select all
define command{
command_name check_ping
command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5
}Code: Select all
define service{
use generic-service ; Name of service template to
host_name example.com
service_description PING
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 30
retry_check_interval 5
contact_groups xyzgrp
notification_interval 120
notification_period 24x7
notification_options w,u,c,r
check_command check_ping!30000,1%!100000,2%
}Edit:
Hello,
When I am running ping command manually not getting any packet lost.
Ping server 1.1.1.1 from Nagios:-
Code: Select all
# ping 1.1.1.1
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
64 bytes from 1.1.1.1: icmp_seq=1 ttl=128 time=0.624 ms
64 bytes from 1.1.1.1: icmp_seq=2 ttl=128 time=0.325 ms
64 bytes from 1.1.1.1: icmp_seq=3 ttl=128 time=0.355 ms
64 bytes from 1.1.1.1: icmp_seq=4 ttl=128 time=0.887 ms
64 bytes from 1.1.1.1: icmp_seq=5 ttl=128 time=0.544 ms
64 bytes from 1.1.1.1: icmp_seq=6 ttl=128 time=0.362 ms
64 bytes from 1.1.1.1: icmp_seq=7 ttl=128 time=0.578 ms
64 bytes from 1.1.1.1: icmp_seq=8 ttl=128 time=0.525 ms
64 bytes from 1.1.1.1: icmp_seq=9 ttl=128 time=0.960 ms
64 bytes from 1.1.1.1: icmp_seq=10 ttl=128 time=2.25 ms
64 bytes from 1.1.1.1: icmp_seq=11 ttl=128 time=14.0 ms
64 bytes from 1.1.1.1: icmp_seq=12 ttl=128 time=0.459 ms
64 bytes from 1.1.1.1: icmp_seq=13 ttl=128 time=0.619 ms
64 bytes from 1.1.1.1: icmp_seq=14 ttl=128 time=0.563 ms
64 bytes from 1.1.1.1: icmp_seq=15 ttl=128 time=1.70 ms
64 bytes from 1.1.1.1: icmp_seq=16 ttl=128 time=2.84 ms
64 bytes from 1.1.1.1: icmp_seq=17 ttl=128 time=0.402 ms
64 bytes from 1.1.1.1: icmp_seq=18 ttl=128 time=0.465 ms
64 bytes from 1.1.1.1: icmp_seq=19 ttl=128 time=0.384 ms
64 bytes from 1.1.1.1: icmp_seq=20 ttl=128 time=2.00 ms
64 bytes from 1.1.1.1: icmp_seq=21 ttl=128 time=0.464 ms
64 bytes from 1.1.1.1: icmp_seq=22 ttl=128 time=2.47 ms
--- 1.1.1.1 ping statistics ---
22 packets transmitted, 22 received, 0% packet loss, time 23032ms
rtt min/avg/max/mdev = 0.325/1.539/14.055/2.834 ms
Ping server 1.1.1.1 using check_ping from Nagios:- Showing packet lost when run below command first time.
# ./check_ping -H 1.1.1.1 -w 30000,1% -c 100000,2%
PING CRITICAL - Packet loss = 16%, RTA = 2.26 ms|rta=2.257000ms;30000.000000;100000.000000;0.000000 pl=16%;1;2;0
# ./check_ping -H 1.1.1.1 -w 30000,1% -c 100000,2%
PING OK - Packet loss = 0%, RTA = 1.16 ms|rta=1.163000ms;30000.000000;100000.000000;0.000000 pl=0%;1;2;0
Imran Khan.
Mode Note: Merged your two posts, please edit your previous post if you are the last poster instead of replying to yourself. Also be sure to wrap your code/cli output in CODE tags.