Cannot get check_http to authenticate

Jason Smedley jason at architel.com
Fri Dec 14 01:04:42 CET 2007


I'm trying to check status on a web site which requires basic  
authentication.  This is not auth from the web app, but a pop-up  
window from Apache.

My command string is:

check_http -H www.somedomain.com -v -a user:pass

It always returns HTTP WARNING: HTTP/1.1 401 Authorization Required

I can successfully connect to another apache based site using the same  
command string.

 From the verbose output, the only difference I can see between the  
two sites is this line:
"WWW-Authenticate: Digest realm="Restricted Access", nonce="V 
+kWjRNCBAA=8226d42966b0325c9124341db605f1eb57b7ff35", algorithm=MD5,  
domain="/ /gallery /forum", qop="auth"

The one I can authenticate to has this:
"WWW-Authenticate: Basic realm="Restricted Access"

Any ideas?

Thanks


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20071213/287dd1c1/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
-------------- next part --------------
_______________________________________________
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