check_http and HTTP Basic Authentication

Marc-André Doll mad at b-care.net
Thu Mar 18 14:29:26 CET 2010


Hi all,


I'm trying to reach a website hosted on a IIS webserver and supervise it
with check_http (from the nagios-plugins v1.4.13 bundle). This website
asks for a Basic HTTP authentication, so I tried

check_http -H 'my.server' -a 'domain\user:pass' -f follow

and got :

HTTP WARNING - 401 Unauthorized

So i tried this to check if the username/password was correct :

wget http://my.server/ --http-user='domain\user' --http-passwd='pass'

and got :

HTTP request sent, waiting response ... 401 Unauthorized
Reusing existing connection to my.server:80
HTTP request sent, waiting response ... 401 Unauthorized
Reusing existing connection to my.server:80
HTTP request sent, waiting response ... 200 OK

What am I supposed to understand ? Is that a flawn in check_http Basic
Authentication implementation or a IIS configuration issue ?

Thank you,

Marc-André


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
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