check_http -s

Proskurin Kirill proskurin-kv at fxclub.org
Fri May 8 17:52:46 CEST 2009


Holger Weiss wrote:
> * 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:

Ops! I missed what I post wrong command to list. Sorry.
I fix it but:

./check_http -v -H example.com -u /some.jsp -s=OKAY
GET /some.jsp HTTP/1.0
User-Agent: check_http/v2053 (nagios-plugins 1.4.13)
Connection: close
Host: example.com


http://example.com:80/some.jsp is 386 characters
STATUS: HTTP/1.1 200 OK
**** HEADER ****
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=C75D8239CF3F0C0D4FEF29DCD9316EBD; Path=/
Content-Type: text/html;charset=ISO-8859-1
Content-Length: 154
Date: Fri, 08 May 2009 15:51:01 GMT
Connection: close
**** CONTENT ****
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Check</title>

</head>
<body>
OKAY

</body>
</html>

HTTP CRITICAL - string not found|time=0.447721s;;;0.000000 size=386B;;;0

-- 
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