Page 1 of 1

RTA set values in Nagios

Posted: Thu Jul 21, 2016 1:08 am
by blaha
Hi, it is possible set values RTMAX = Maximum Round-Trip time and RTMIN = Minimum Round-Trip time in Nagios? It is possible set these values for specific switch/server in cfg file?

Thank's
Jan

Re: RTA set values in Nagios

Posted: Thu Jul 21, 2016 11:54 am
by bwallace
The check_ping man page makes zero mention of RTMAX and RTMIN.
https://nagios-plugins.org/doc/man/check_ping.html

However, is the below example close to what you're looking for?
./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,40%" (RTA,PKTLOSS%)
- $ARG2$ would be "400.0,80%" (RTA,PKTLOSS%)


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


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

Re: RTA set values in Nagios

Posted: Thu Jul 21, 2016 12:03 pm
by bwallace
I just noticed that the check_icmp plugin returns RTMAX + RTMIN:

Code: Select all

[root@XIcent7 libexec]# ./check_icmp -H www.nagios.com
OK - www.nagios.com: rta 45.347ms, lost 0%|rta=45.347ms;200.000;500.000;0; pl=0%
;40;80;; rtmax=51.425ms;;;; rtmin=41.800ms;;;;
I guess the big question is are you trying to set thresholds for RTMAX and RTMIN?