You don't have permission to access /nagios/ on this server

jonas kellens jonas.kellens at telenet.be
Fri Oct 30 20:34:22 CET 2009


Dear list,

I have installed nagios from source.

Then executed the following commands :

[root at nagios nagios-3.2.0]# chown nagios.nagios /usr/local/nagios/ 

[root at nagios nagios-3.2.0]# make install-webconf 

[root at nagios ~]# htpasswd -c /usr/local/nagios/etc/htpasswd.users
nagiosadmin 

In my /usr/local/nagios/etc/ I have :

[root at nagios ~]# ls -l /usr/local/nagios/etc/
total 88
-rw-rw-r-- 1 nagios nagios 11408 Oct 30 19:30 cgi.cfg
-rw-r--r-- 1 root   root      26 Oct 30 19:44 htpasswd.users
-rw-rw-r-- 1 nagios nagios 43776 Oct 30 19:30 nagios.cfg
drwxrwxr-x 2 nagios nagios  4096 Oct 30 19:30 objects
-rw-rw---- 1 nagios nagios  1340 Oct 30 19:30 resource.cfg

Is it normal that htpasswd.users has root.root ??

In my /etc/httpd/conf.d/ I have :

[root at nagios ~]# ls -l /etc/httpd/conf.d/
total 32
-rw-r--r-- 1 root root 1010 Oct 30 19:42 nagios.conf
-rw-r--r-- 1 root root  566 Sep  3 23:42 proxy_ajp.conf
-rw-r--r-- 1 root root  392 Sep  3 23:42 README
-rw-r--r-- 1 root root  299 Sep  3 23:42 welcome.conf

Is it normal that nagios.conf has root.root ?? 

The /etc/httpd/conf.d/nagios.conf look like this :

<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>

"Allow from all" should let me consult the Nagios web-interface from
whichever host I want to, no ?!

[root at nagios ~]# ls -l /usr/local/nagios/
total 56
drwxrwxr-x  2 nagios nagios 4096 Oct 30 19:30 bin
drwxrwxr-x  3 nagios nagios 4096 Oct 30 19:44 etc
drwxr-xr-x  2 root   root   4096 Oct 30 20:50 include
drwxrwxr-x  2 nagios nagios 4096 Oct 30 20:50 libexec
drwxrwxr-x  2 nagios nagios 4096 Oct 30 19:27 sbin
drwxrwxr-x 10 nagios nagios 4096 Oct 30 20:50 share
drwxrwxr-x  5 nagios nagios 4096 Oct 30 21:33 var

All directories in /usr/local/nagios is nagios.nagios. That's OK,
right ?!

When I want to consult the webGUI from my portable, I get the message
"You don't have permission to access /nagios/ on this server".

The /var/log/httpd/error/log says :

[Fri Oct 30 21:38:19 2009] [error] [client 192.168.1.250] Directory
index forbidden by Options directive: /usr/local/nagios/share/

192.168.1.250 is my ClarkConnect gateway-server. My client is
192.168.1.100.

Can someone advise ?

Jonas.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20091030/35e71bea/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
-------------- 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