On Mon, Dec 10, 2007 at 12:45:43AM +0100, Jan Wagner wrote:
> On Thursday 04 January 2007 10:48, Marc Haber wrote:
> > [This is a nagios-plugins-basic backport to sarge]
> >
> > check_http --help says:
> >  -e, --expect=STRING
> >     String to expect in first (status) line of server response
> >
> > However, neither
> > /usr/lib/nagios/plugins/check_http --host 10.2.202.247 --ssl --expect=401
> > nor
> > /usr/lib/nagios/plugins/check_http --host 10.2.202.247 --ssl --expect 401
> > are accepted.
> >
> > /usr/lib/nagios/plugins/check_http --host 10.2.202.247 --ssl -e 401
> >
> > is.
> 
> $ /usr/lib/nagios/plugins/check_http -H localhost -p 80 -u 
> 20 --expect 'HTTP/1.1'
> HTTP OK HTTP/1.1 400 Bad Request - 575 bytes in 0.001 seconds |
> time=0.001160s;;;0.000000 size=575B;;;0
> $ /usr/lib/nagios/plugins/check_http -H localhost -p 80 -u 
> 20 --expect='HTTP/1.1'
> HTTP OK HTTP/1.1 400 Bad Request - 575 bytes in 0.001 seconds |
> time=0.000847s;;;0.000000 size=575B;;;0
> 
> Could you confirm that it works?

No.

$ /usr/lib/nagios/plugins/check_http --host localhost -p 80 -u 20 --expect 
'HTTP/1.1'
/usr/lib/nagios/plugins/check_http: unrecognized option `--expect'
check_http: Unknown argument - (null)
Usage: check_http -H <vhost> | -I <IP-address> [-u <uri>] [-p <port>]
       [-w <warn time>] [-c <critical time>] [-t <timeout>] [-L]
       [-a auth] [-f <ok | warn | critcal | follow>] [-e <expect>]
       [-s string] [-l] [-r <regex> | -R <case-insensitive regex>] [-P string]
       [-m <min_pg_size>:<max_pg_size>] [-4|-6] [-N] [-M <age>] [-A string] [-k 
string]

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 3221 2323190



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to