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