Unable to login to Nagios 4.0.2 after Ubuntu upgrade 14.04
Posted: Fri Nov 14, 2014 11:18 am
I recently put a server through an unexpectedly traumatic Ubuntu apt-get dist-upgrade to 14.04, and one of the things affected was Apache and Nagios.
I've finally gotten it so I can see the Nagios screens again, but it's still not working correctly yet.
- I'm no longer prompted to log in, ever (I want to always log in as nagiosadmin)
- I see "Logged in as ?" under current network status
- When I try to do anything I get error messages such as "It appears as though you do not have permission to view information for any of the hosts you requested... If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI and check the authorization options in your CGI configuration file."
- I get no errors in Apache's log or Nagios's log
Looking at others with similar problems, I would assume I need to get Apache to oblige me to login. I've tried to cause this to happen a variety of ways, but I so far have not gotten it to work. For example here's my httpd.conf:
(I've been running Nagios since 3, don't be thrown off by the directory name; I promise to fix it if I can get this working again.)
Thank you!
I've finally gotten it so I can see the Nagios screens again, but it's still not working correctly yet.
- I'm no longer prompted to log in, ever (I want to always log in as nagiosadmin)
- I see "Logged in as ?" under current network status
- When I try to do anything I get error messages such as "It appears as though you do not have permission to view information for any of the hosts you requested... If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI and check the authorization options in your CGI configuration file."
- I get no errors in Apache's log or Nagios's log
Looking at others with similar problems, I would assume I need to get Apache to oblige me to login. I've tried to cause this to happen a variety of ways, but I so far have not gotten it to work. For example here's my httpd.conf:
Code: Select all
ScriptAlias /nagios/cgi-bin /usr/lib/cgi-bin/nagios3
<Directory "/usr/lib/cgi-bin/nagios3">
AllowOverride AuthConfig
Options ExecCGI
Require all granted
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
require valid-user
</Directory>
Alias /nagios /usr/local/nagios/share
<Directory "/usr/local/nagios/share">
Options None
AllowOverride AuthConfig
Require all granted
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
require valid-user
</Directory>Thank you!