401 error with Nagstamon after loggin into CCM
Posted: Tue Jul 19, 2011 3:44 pm
Hoping this belongs in the core section:
For this one particular user, when we create a user/pass entry in /usr/local/nagiosxi/etc/htpasswd.users, when he configures Nagstamon it works fine. As soon as he logs into NagiosXI, then the Core Configuration Manager, he gets a 401 (Authorization Required) error in Nagstamon. This doesn't happen for any other user...but to compound the strange behavior, this was happening on our NagiosXI 2009 server, and now is happening on the NagiosXI 2011 server. No users were migrated, all were created new, and it is happening with the same user.
I decoded the Basic Auth, and the user/pass are correct. If he configures Nagstamon with a different user and then logs into the CCM, the problem does not occur.
Any ideas, or have you seen this one before?
GET /nagios/cgi-bin/status.cgi?hostgroup=all&style=hostdetail&hoststatustypes=12&hostprops=0 HTTP/1.1
Accept-Encoding: identity
Host: nagiosxi.edgewebhosting.net
Connection: close
Authorization: Basic xxxxxxxxxxxxxxxxxxxxxx
User-Agent: Python-urllib/2.7
HTTP/1.1 401 Authorization Required
Date: Tue, 19 Jul 2011 20:29:30 GMT
Server: Apache/2.2.3 (Red Hat)
WWW-Authenticate: Basic realm="Nagios Core"
Content-Length: 494
Connection: close
Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Authorization Required</title>
</head><body>
<h1>Authorization Required</h1>
<p>This server could not verify that you
are authorized to access the document
requested. Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.</p>
<hr>
<address>Apache/2.2.3 (Red Hat) Server at nagiosxi.edgewebhosting.net Port 80</address>
</body></html>
For this one particular user, when we create a user/pass entry in /usr/local/nagiosxi/etc/htpasswd.users, when he configures Nagstamon it works fine. As soon as he logs into NagiosXI, then the Core Configuration Manager, he gets a 401 (Authorization Required) error in Nagstamon. This doesn't happen for any other user...but to compound the strange behavior, this was happening on our NagiosXI 2009 server, and now is happening on the NagiosXI 2011 server. No users were migrated, all were created new, and it is happening with the same user.
I decoded the Basic Auth, and the user/pass are correct. If he configures Nagstamon with a different user and then logs into the CCM, the problem does not occur.
Any ideas, or have you seen this one before?
GET /nagios/cgi-bin/status.cgi?hostgroup=all&style=hostdetail&hoststatustypes=12&hostprops=0 HTTP/1.1
Accept-Encoding: identity
Host: nagiosxi.edgewebhosting.net
Connection: close
Authorization: Basic xxxxxxxxxxxxxxxxxxxxxx
User-Agent: Python-urllib/2.7
HTTP/1.1 401 Authorization Required
Date: Tue, 19 Jul 2011 20:29:30 GMT
Server: Apache/2.2.3 (Red Hat)
WWW-Authenticate: Basic realm="Nagios Core"
Content-Length: 494
Connection: close
Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Authorization Required</title>
</head><body>
<h1>Authorization Required</h1>
<p>This server could not verify that you
are authorized to access the document
requested. Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.</p>
<hr>
<address>Apache/2.2.3 (Red Hat) Server at nagiosxi.edgewebhosting.net Port 80</address>
</body></html>