Hi All,
Newbie here
I have done some research before posting this .... But to no avail.
I have a machine setup with nagios, when I come to log in to the web interface all i get is the log in screen repeatedly and then the 'authorization failed' message. Just wondered if someone could take a look at my config please:
nagios.conf
Code:
ScriptAlias /nagios/cgi-bin "/usr/lib/nagios/cgi"
<Directory "/usr/lib/nagios/cgi">
# SSLRequireSSL
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /etc/nagios/htpasswd.users
Require valid-user
</Directory>
Alias /nagios "/usr/share/nagios"
<Directory "/usr/share/nagios">
# SSLRequireSSL
Options None
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /etc/nagios/htpasswd.users
Require valid-user
</Directory>
Code:
total 84
-rw-rw-r-- 1 492 nagios 11392 Dec 13 07:36 cgi.cfg
-rw-r--r-- 1 root root 15860 Aug 29 2012 command-plugins.cfg
-rw------- 1 root root 26 Dec 17 02:33 htpasswd.users
-rw-rw-r-- 1 492 nagios 43529 Dec 13 07:14 nagios.cfg
drwxr-xr-x 2 492 nagios 4096 Dec 17 02:17 objects
-rw-rw---- 1 492 nagios 1340 Nov 26 2010 resource.cfg
Also seeing this in the log but not sure how to fix it:
Code:
[Tue Dec 17 02:34:39 2013] [error] [client 10.20.55.73] (13)Permission denied: Could not open password file: /etc/nagios/htpasswd.users
[Tue Dec 17 02:34:39 2013] [error] [client 10.20.55.73] access to /nagios failed, reason: verification of user id '' not configured
Any help would be appreciated.
Thanks
Any help would be appreciated.