Page 1 of 1

URL Monitor - OUTPUT: HTTP WARNING: HTTP/1.1 401 Unauthorize

Posted: Wed Jul 24, 2013 10:40 pm
by sureshkraj
Hello All,

I am trying to monitor a URL (http://www.example.com) but it shows "OUTPUT: HTTP WARNING: HTTP/1.1 401 Unauthorized" error. I tried to pass authentication (-a \"username:password - check_http plugin) but its not working. The problem is, URL prompts username and password (Authentication required dialogue box) at startup (as soon as you hit enter in the browser)

Any suggestions please?

I also tried to pass username and password in the URL but nagios not allowing me to configure in such a way, it says "URL Invalid"

http://username:[email protected]/

Re: URL Monitor - OUTPUT: HTTP WARNING: HTTP/1.1 401 Unautho

Posted: Thu Jul 25, 2013 11:35 am
by abrist
Can you post the full command of the check? You should be able to pass a username and password with check_http, though this option only supports Basic Auth:
From: http://nagiosplugins.org/man/check_http
-a, --authorization=AUTH_PAIR
Username:password on sites with basic authentication

Re: URL Monitor - OUTPUT: HTTP WARNING: HTTP/1.1 401 Unautho

Posted: Sat Aug 03, 2013 12:03 am
by sureshkraj
Thank you! I came to know later, the page that I am trying to monitor uses NTLM authentication and it cannot be done with check_http since it only support basic authentication.

I solved this issue with chech_http_ntlm plugin