check_http

Marc Powell marc at ena.com
Wed Mar 3 22:09:51 CET 2004


On Wednesday, March 03, 2004 2:47 PM, Steve shared with us:

> how can I report an error if content is found via something like:
> 
> check_http -H ip -p 1111 -a id:passwd -s Offline
> 
> instead of getting "HTTP ok: ..."
> 
> I want it to report error when text x (offline)  is found and normal
> when not found, ie HTTP CRITICAL would be normal state..? 

Use the negate plugin. It does exactly what you want.

negate check_http -H ip -p 1111 -a id:passwd -s Offline

--
Marc





-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
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