Nagios Negate

Subhendu Ghosh sghosh at sghosh.org
Mon Jan 19 21:37:57 CET 2004


On Mon, 19 Jan 2004, Simon Lorenz wrote:

> Am I correct in thinking that the Nagios negate plug-in only works as a
> wrapper for plug-ins that require no options? When running it always returns
> an error that suggests this is so:
> 
> ./negate ./check_http -H 192.168.0.100
> ./negate: invalid option -- H
> negate: Unknown argument - H
> 
> If so are there other options out there, or will I need to write my own?
> 
> What I am trying to do is get the check_http plug-in to check for a specific
> piece of content, that will only be shown if there IS a problem. To do this
> I need to reverse the response generated by this plug-in, so that it
> generates a CRITICAL alert if it finds the string.


Not really - it only changes the return code - the text is left as is...
negate did work in the last stable release... The error you are seeing was 
fixed...


[sghosh at calcutta plugins]$ ./negate ./check_fping -H jersey ; echo $?
FPING CRITICAL - jersey (loss=100% )|loss=100%;;;0;100
0
[sghosh at calcutta plugins]$ ./check_fping -H jersey ; echo $?
FPING CRITICAL - jersey (loss=100% )|loss=100%;;;0;100
2


-- 
-sg



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
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





More information about the Users mailing list