Hi,<br><div class="gmail_quote"><font size="-1">
<br>
I have been trying to test and implement the negate wrapper in our
Nagios environment. It has worked successfully with all (except one) of
the plugins. 'negate' is not working as expected when I try to use with check_http
(with -u <URL> argument especially). When I actually run the
negate wrapper with check_http plugin against a web server (enabled with SSL), it
doesn't negate the state returned (only when the web server is down).<br>
<br>
When the web server is down (connect to socket times out) and
check_http plugin actually returns STATE_CRITICAL with time out error.
But when negate wrapper is used, surprisingly it doesn't negate the output, but
instead returns STATE_CRITICAL. I have included the commands and the
output of the commands as below:<br>
<br>
<font color="#ff0000">prod-unix-mon04:/usr/lib/nagios/plugins#
/usr/lib/nagios/plugins/check_http -S -p 443 -u '/EdgeAuth/login.jsp'
-H <server_name><br>
CRITICAL - Socket timeout after 10 seconds<br>
prod-unix-mon04:/usr/lib/nagios/plugins# echo $?<br>
2<br>
prod-unix-mon04:/usr/lib/nagios/plugins# /usr/lib/nagios/plugins/negate
/usr/lib/nagios/plugins/check_http -S -p 443 -u '/EdgeAuth/login.jsp'
-H <server_name><br>
CRITICAL - Plugin timed out after 10 seconds<br>
prod-unix-mon04:/usr/lib/nagios/plugins# echo $?<br>
2</font><br>
<br>
Our Nagios environment details are as follows:<br>
Nagios Version : 3.0<br>
Nagios Plugins Version : 1.4.11<br>
<br>
Appreciate any quick help / suggestions to get around this problem.
Thanks in advance.<br>
<br>
Thanks & Regards,<br>
Satish Kumar P<br>
</font>
</div><br>