negate plugin
Johnson, Jim
J1Johnson at unum.com
Mon Jun 18 17:29:06 CEST 2018
This worked for me:
/usr/local/nagios/libexec/negate --ok=CRITICAL --critical=OK -s /usr/local/nagios/libexec/check_icmp -n 5 -c 400,50% -w 200,20% -H hostname
OK - hostname: Host unreachable @ 10.xx.xx.xx. rta nan, lost 100%|rta=0.000ms;200.000;400.000;0; pl=100%;20;50;; rtmax=0.000ms;;;; rtmin=0.000ms;;;;
I think you’re missing the -s option to substitute.
Good luck!
- Jim
From: Help <help-bounces+j1johnson=unum.com at monitoring-plugins.org> On Behalf Of thierry gicquel
Sent: Monday, June 18, 2018 11:12 AM
To: help at monitoring-plugins.org
Subject: negate plugin
This message originated outside of Unum. Use caution when opening attachments, clicking links or responding to requests for information.
hI,
I tried to use plugin "negate" with check_icmp but ther is no inversion of result.
I tried like this
./negate --critical=OK --warning=UNKNOWN /usr/lib/nagios/plugins/check_icmp -n 5 -c 400,50% -w 200,20% -H hostaddress
the result = CRITICAL - hostaddress: rta nan, lost 100%|rta=0.000ms;200.000;400.000;0; pl=100%;20;50;; rtmax=0.000ms;;;; rtmin=0.000ms;;;;
Nota : i have replaced with a valid address of course :-)
Normally the result would be OK because my server is down ...
Thierry Gicquel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20180618/d2d3fbbb/attachment.html>
More information about the Help
mailing list