Page 1 of 1

Monitoring critical packet loss in the channel

Posted: Fri Feb 19, 2016 6:10 am
by RockerMan
Hi

There is not a trivial task. We have leased line via ISP between two offices (use Cisco 3925). Used to ip phone (bt phone). Criticality of packet loss during data transmission. To check the quality of the channel, i send ping (1000 pcs.) on cisco3925 from the sourse address of the tunnel to destination address of the tunnel. If the connections between btphones is down, then this is accompanied by the degradation of the channel and can be seen that the packets are lost, but the channel itself alive.
-

Code: Select all

ping 192.168.***.** re 1000 si 1500 so 192.168.***.**
Type escape sequence to abort.
Sending 1000, 1500-byte ICMP Echos to 192.168.221.9, timeout is 2 seconds:
!!!!!!!!!!!!!!!!!!!!!.!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!.!!!!.!!!!!!!!!!.!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!.!!!!
...
!!!!!!!!!!!!!!!!!!!!
Success rate is 98 percent (980/1000), round-trip min/avg/max = 38/60/158 ms
Prompt please, what means you can take on the nagios to monitor the result of the ping? To 100% if the packet comes, the all right, and if it is less, then the critical.

Thanks

Re: Monitoring critical packet loss in the channel

Posted: Fri Feb 19, 2016 1:47 pm
by bwallace
What I think you are asking is quite standard. Below is the check_ping command from XI. You can set whatever thresholds you want, pertaining to percentage of packet loss, round trip average.

/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5

-w is the WARNING status limit for $ARG1$, wherein you specify RTA,PKTLOSS percentage
-c is the CRITICAL status limit for $ARG2$, wherein you specify RTA,PKTLOSS percentage
-p is the number of packets to send. default is 5

- $ARG1$ macro would be formatted for example,"200.0,80%" (RTA,PKTLOSS%)
- $ARG2$ would be "400.0,40%" (RTA,PKTLOSS%)


To put it all together:
check_ping -H $HOSTADDRESS$ -w 200.0,80% -c 400.0,40% -p 5


In other words, have Nagios send a warning if RTA is, or exceeds 200ms and/or there is 80% packet loss.
Nagios will send a critical alert if RTA >= 400ms and/or there is 40% packet loss.

Re: Monitoring critical packet loss in the channel

Posted: Sat Feb 20, 2016 4:12 am
by RockerMan
hi, bwallace
ok
thanks
very good solution

PS
topic can be closed

Re: Monitoring critical packet loss in the channel

Posted: Mon Feb 22, 2016 10:07 am
by bwallace
Glad to help! I'll lock this thread now and feel free to open another should you require assistance with anything else.