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.
pgp3L2DN6ZCGi.pgp
Description: PGP signature

