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

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sureshkraj
Posts: 3
Joined: Wed Jul 17, 2013 8:31 pm

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

Post 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]/
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
sureshkraj
Posts: 3
Joined: Wed Jul 17, 2013 8:31 pm

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

Post 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
Locked