check_http -s
Proskurin Kirill
proskurin-kv at fxclub.org
Fri May 8 16:44:31 CEST 2009
Hello all.
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
POST /some.jsp HTTP/1.0
User-Agent: check_http/v2053 (nagios-plugins 1.4.13)
Connection: close
Host: example.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 8
-s=ERROR
http://example.com:80/some.jsp is 386 characters
STATUS: HTTP/1.1 200 OK
**** HEADER ****
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=72439B901515114D613218FF9FD8084D; Path=/
Content-Type: text/html;charset=ISO-8859-1
Content-Length: 154
Date: Fri, 08 May 2009 14:07:29 GMT
Connection: close
**** CONTENT ****
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>SomeTitle</title>
</head>
<body>
OKAY
</body>
</html>
HTTP OK HTTP/1.1 200 OK - 386 bytes in 0.450 seconds
|time=0.449973s;;;0.000000 size=386B;;;0
BUT it must be ERROR - not ok.
What I do wrong?
--
Best regards,
Proskurin Kirill
------------------------------------------------------------------------------
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