check_http -s

Holger Weiss holger at CIS.FU-Berlin.DE
Fri May 8 17:25:42 CEST 2009


* Proskurin Kirill <proskurin-kv at fxclub.org> [2009-05-08 18:44]:
> I try to add a check_http with expecting some word in a body.
> But:
> 
> ./check_http -v -H example.com -u /some.jsp -P -s=ERROR

In this command line, "-s=ERROR" will be interpreted as an argument to
the "-P" option, see the "--help" output:

$ check_http -h | grep -A 1 -- ' -P'
 -P, --post=STRING
    URL encoded http POST data

Without the "-P" option (or with an appropriate argument to the "-P"
option), things should work as expected:

$ check_http -H www.nagiosplugins.org -P -s=ERROR
HTTP OK HTTP/1.1 200 OK - 19113 bytes in 1.578 seconds |time=1.578360s;;;0.000000 size=19113B;;;0
$ check_http -H www.nagiosplugins.org -s=ERROR
HTTP CRITICAL - string not found|time=0.861949s;;;0.000000 size=19048B;;;0

Holger

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
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