[Nagiosplug-devel] new option to check_http

sean finney seanius at seanius.net
Fri Jun 2 01:17:58 CEST 2006


hey folks,

just wanted to throw this out there:

currently, when checking http against a site that requires a user/pass,
you'll get STATE_WARNING like this:

bash$ ./check_http --ssl -H foo.bar.com
HTTP WARNING: HTTP/1.1 401 Authorization Require

however, what if i want to verify that a user/password are required, but
don't care about getting in?  one idea:

- modify the -a (user:pass) to have it's optarg be optional, and if
  not specified imply that we should just check to see if authorization
  is required (check for a status 401)

another idea:
  
- provide an option for "expected HTTP status line/code", which takes an
  integer/regex which matches against the server response code/line. and
  exits CRITICAL if the server returns any other code.

i think the second idea is a bit more general, and wasn't too hard to
hack in (using the integer,code combo, didn't bother for the regex).
however, i'm wondering what other people think before i make a commit.


	sean
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20060601/10e671ee/attachment.sig>


More information about the Devel mailing list