Hi,
i’m having problem using the link localhost/nagios/
when i’m trying to use it i’m getting an error message:
You don’t have permission to access /nagios/ on this server.
i also looked at the error_log of httpd and i saw this massge:
(13)Permission denied: access to /nagios/ denied
i’m using linux 2.6.9-5.EL
httpd version : httpd-2.0.52-9.ent
nagios version: 2.o
i install nagios in the default location /usr/local/nagios.
i start nagios with no problem after configure all cfg files.
i placed the folowing lines in httpd.conf and restart httpd process
ScriptAlias /nagios/cgi-bin “/usr/local/nagios/sbin/”
<Directory “/usr/local/nagios/sbin/”>
Options ExecCGI
AllowOverride AuthConfig
Order allow,deny
Allow from all
Alias /nagios/ “/usr/local/nagios/share/”
<Directory “/usr/local/nagios/share/”>
Options None
AllowOverride AuthConfig
Order allow,deny
Allow from all
i created the .htaccess in the share directory with the folowing lines:
AuthUserFile /usr/local/nagios/etc/htpasswd.users
AuthType Basic
AuthName "Nagios Access"
require valid-user
i creted 2 user cald nagiosadmin and eliel with the command htpasswd and the filehtpasswd.users with 2 line was created.
i followd every manual posible in apache web site and in nagios web site and i’m still geting this error.
can you please post the User and Group of httpd.conf? It seems your user nagiosadmin and eliel is not authorized to view that nagios dir. Also check you DocumentRoot =) Hope this helps.
permissions on the etc files should be 644.
-rw-rw-r-- 1 nagios nagios 7065 Jun 5 14:44 hostgroups.cfg
-rw-rw-r-- 1 nagios nagios 61552 Jun 5 14:44 hosts.cfg
-rw-rw-r-- 1 nagios nagios 753 Jun 10 14:59 htpasswd.users
The apache user will be able to read the htpasswd.users file, so you don’t need to add nagios user to any other group.
Paste your permissions on the htppasswd file here like i have done, so we can see what you have.
i have done every thing you said.
but still i’m getting the login screen again and again.
in the apache error_log i’m getting the folowing lines:
MySQL ERROR: Access denied for user ‘nagios’@‘localhost’ (using password: NO)
[Sun Jun 26 11:08:31 2005] [error] [client xx.xx.xxx.xx] MySQL user nagios not found: /nagios/
my mysql deamon is up and running, i have created the user nagios using webmin in MySql.
i don’t have any Data Base installed for nagios, only the default DB that mysql instaled.
i have not find ant documentation for such DB.
thanks too,i had this problem but it is solved now.
i remove the mod_auth_mysql package. and then restart the httpd service,
but this remove won’t cause problem for other applications?