Page 1 of 1
error 403 Access forbidden! after nagios quick setup
Posted: Wed Jun 25, 2014 2:16 pm
by venkatesh ch
Hi ,
I have followed to quick installation guide to set up nagios in SUSE 11 linux server.
set up went fine and when i try to Login to the Web Interface i found following error in browser.
Code: Select all
Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
If you think this is a server error, please contact the webmaster.
Error 403
localhost
Wed Jun 25 21:02:42 2014
Apache/2.2.10 (Linux/SUSE)
May be some thing need to change in nagios.conf in conf.d directory.'
could some one help me to fix it.
Re: error 403 Access forbidden! after nagios quick setup
Posted: Thu Jun 26, 2014 11:19 am
by sreinhardt
Instead of just accessing the directory, have you also tried accessing /nagios/index.html or /nagios/index.php?
Re: error 403 Access forbidden! after nagios quick setup
Posted: Thu Jun 26, 2014 1:40 pm
by venkatesh ch
Hi ,
Thanks for the suggestion.
i tried with following changes in nagios.conf
Code: Select all
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
<Directory "/usr/local/nagios/sbin">
# 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 /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
Alias /nagios "/usr/local/nagios/share"
<Directory "/usr/local/nagios/share">
# SSLRequireSSL
DirectoryIndex index.php
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 /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
But when try to access from web interface through firefox :
http://localhost/nagios it is directly routed to index.php.
Could you please suggest me which php plugin needs to be installed to access.
BR// venkatesh
Re: error 403 Access forbidden! after nagios quick setup
Posted: Fri Jun 27, 2014 11:25 am
by tmcdonald
I'm a bit confused by what you mean here. When you visit
http://xxx.xxx.xxx.xxx/nagios it should properly show you the index page instead of a directory listing, and that seems to be the case here. Is it not allowing you to click links? Please give us a bit more detail as to what you are experiencing and what you expect to occur.
Re: error 403 Access forbidden! after nagios quick setup
Posted: Fri Jun 27, 2014 11:28 am
by lmiltchev
Are you sure that you are not missing the PHP5 and PHP5 module for Apache2? Try running:
Code: Select all
zypper install php5 php5-gd php5-zlib