<br>Thanks very much Marc, it works<br><br><div class="gmail_quote">2008/6/4 Marc Powell <<a href="mailto:marc@ena.com">marc@ena.com</a>>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c"><br>
On Jun 4, 2008, at 5:05 AM, The Noob wrote:<br>
<br>
> Hello all,<br>
><br>
> I have a problem to use negate plugin, I use theses commands:<br>
><br>
> ./check_ping -H <a href="http://192.168.0.1" target="_blank">192.168.0.1</a> -w 3000.0,80% -c 5000.0,100% -p 2<br>
> PING OK - Packet loss = 0%, RTA = 4.97 ms<br>
><br>
> ./negate ./check_ping -H <a href="http://192.168.0.1" target="_blank">192.168.0.1</a> -w 3000.0,80% -c 5000.0,100% -p 2<br>
> PING OK - Packet loss = 0%, RTA = 4.91 ms<br>
><br>
> Why the plugin does not return CRITICAL ?<br>
<br>
</div></div>It is. Nagios does not use the text of the plugin output to determine<br>
state but rather it's exit code. The plugin output is just for humans.<br>
After running the negate command above, 'echo $?' should return '2'.<br>
<br>
If you want to change the status text, the very latest version of<br>
negate in plugins-1.4.12 includes a new option for that but it has no<br>
effect on what nagios thinks the state is --<br>
<br>
# negate now has the ability to replace the status text as well (-s, --<br>
substitute)<br>
<br>
--<br>
Marc<br>
<br>
-------------------------------------------------------------------------<br>
Check out the new SourceForge.net Marketplace.<br>
It's the best place to buy or sell services for<br>
just about anything Open Source.<br>
<a href="http://sourceforge.net/services/buy/index.php" target="_blank">http://sourceforge.net/services/buy/index.php</a><br>
_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
</blockquote></div><br>