[Pkg-nagios-devel] Bug#405526: Bug#405526: nagios-plugins-basic: check_http --expect option not recognized
Jan Wagner
waja at cyconet.org
Sun Dec 9 23:45:43 UTC 2007
Hi Marc,
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?
Thanks and with kind regrads, Jan.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/attachments/20071210/d5703db3/attachment.pgp
More information about the Pkg-nagios-devel
mailing list