error 403 Access forbidden! after nagios quick setup

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
venkatesh ch
Posts: 5
Joined: Mon Jun 23, 2014 10:37 am

error 403 Access forbidden! after nagios quick setup

Post 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.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: error 403 Access forbidden! after nagios quick setup

Post by sreinhardt »

Instead of just accessing the directory, have you also tried accessing /nagios/index.html or /nagios/index.php?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
venkatesh ch
Posts: 5
Joined: Mon Jun 23, 2014 10:37 am

Re: error 403 Access forbidden! after nagios quick setup

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: error 403 Access forbidden! after nagios quick setup

Post 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.
Former Nagios employee
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: error 403 Access forbidden! after nagios quick setup

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked