You do not have permission to access /nagios on this server

Robert Wolfe rwolfe at i-evolve.com
Mon Mar 8 19:19:48 CET 2010


Try setting ownership of these files to user nagios, group nagios.



From: Gezina Dekker [mailto:gezinker at gmail.com]
Sent: Monday, March 08, 2010 1:17 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] You do not have permission to access /nagios on this server


Hi all,

I have looked at all the questions so far, and nothing that brings any comfort.

I followed the Fedore QuickStart even though I am on RHEL 4 (2.6.9-5.EL)

I have all the following installed:
Apache
PHP
GCC compiler
GD development libraries

I have nagios and nagcmd defined

I have installed nagios and the plugins

I have a passwd in htpasswd, and it is read acces for all.

SELinux is disabled

In terms of my nagios.conf, this is it...

ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"

<Directory "/usr/local/nagios/sbin">
#  SSLRequireSSL
   Options FollowSymLinks ExecCGI
   AllowOverride AuthConfig
   Order allow,deny
   Allow from all
   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
   Options FollowSymLinks
   DirectoryIndex index.html
   AllowOverride AuthConfig
   Order allow,deny
   Allow from all
   AuthName "Nagios Access"
   AuthType Basic
   AuthUserFile /usr/local/nagios/etc/htpasswd.users
   Require valid-user
</Directory>


The contents of my /share is the following:
drwxrwxr-x   9 nagios nagcmd  4096 mrt  8 11:39 .
drwx------  12 nagios nagcmd  4096 mrt  8 11:39 ..
drwxrwxr-x   2 nagios nagcmd  4096 mrt  5 12:23 contexthelp
drwxrwxr-x   3 nagios nagcmd  4096 mrt  5 12:23 docs
drwxrwxr-x   3 nagios nagcmd  4096 mrt  5 12:23 images
-rw-rw-r--   1 nagios nagcmd   726 mrt  5 12:23 index.html
drwxr-xr-x   4 root   root    4096 mrt  8 11:39 locale
-rw-rw-r--   1 nagios nagcmd  3480 mrt  5 12:23 main.html
drwxrwxr-x   2 nagios nagcmd  4096 mrt  5 12:23 media
-rw-rw-r--   1 nagios nagcmd    26 mrt  5 12:23 robots.txt
-rw-rw-r--   1 nagios nagcmd 13532 mrt  5 12:23 side.html
drwxrwxr-x   2 nagios nagcmd  4096 mrt  5 12:23 ssi
drwxrwxr-x   2 nagios nagcmd  4096 mrt  5 12:23 stylesheets


The errors I am getting is the following:

Forbidden
You don't have permission to access /nagios on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.


Apache/2.0.52 (Red Hat) Server at 172.17.16.56 Port 80


I am making the assumption that the 403 is less serious, and that it is actually the permissions that needs fixing...

Thanks in advance for your willingness to look at this with me.

Regards

Gezina
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100308/f1597dc7/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list