check_http -s
Assaf Flatto
assaf.flatto at ssp-intl.com
Fri May 8 17:20:36 CEST 2009
HTTP reply 200 means that the webserver found the page you requested .
if you want to get an ERROR you should either point to a non existing page , which will give you
the 404 error ,
in the example you provide it seem you are trying to submit some string to the jsp and expecting it
to return an error , but you are not submitting any string .
Assaf
On Friday 08 May 2009 22:44:31 Proskurin Kirill wrote:
> 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?
--
Assaf Flatto
SSP Ops Team
Linux System Administrator
169 Euston Road, London, NW1 2AE
Along with a few colleagues I am doing The Three Peaks Challenge again
this year to raise money for The Railway Children.
Please sponsor me by making a donation online, simply click on the link
below and give via your switch/credit card. Thank you.
http://www.justgiving.com/londonnorththreepeaks
IMPORTANT . this email and the information in it may be confidential, legally
privileged and/or protected by law. It is intended solely for the use of the
person to whom it is addressed. If you are not the intended recipient, please
notify the sender immediately and do not disclose the contents to any other
person, use it for any purpose, or store or copy the information in any medium.
Please also delete all copies of this email and any attachments from your
system.
We cannot guarantee the security or confidentiality of email communications. We
do not accept any liability for losses or damages that you may suffer as a
result of your receipt of this email including but not limited to computer
service or system failure, access delays or interruption, data non-delivery or
mis-delivery, computer viruses or other harmful components.
Copyright in this email and any attachments belong to Select Service Partner UK
Limited. Should you communicate with anyone at Select Service Partner UK Limited by
email, you consent to us monitoring and reading any such correspondence.
Nothing in this email shall be taken or read as suggesting, proposing or
relating to any agreement concerted practice or other practice that could
infringe UK or EC competition legislation.
Select Service Partner UK Limited is a company registered in England and Wales
(company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY
------------------------------------------------------------------------------
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