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

Robert Wolfe rwolfe at i-evolve.com
Mon Mar 8 22:09:45 CET 2010


It sounds like he may have Apache logging directed to a MySQL database.

From: Noel Platzke [mailto:neufpas at gmail.com]
Sent: Monday, March 08, 2010 4:02 PM
To: nagios List
Subject: Re: [Nagios-users] You do not have permission to access /nagios on this server

You posted a MySQL error. The error you should be seeing will be in the apache logs. I'm kind of confused.


On Mon, Mar 8, 2010 at 3:47 PM, Gezina Dekker <gezinker at gmail.com<mailto:gezinker at gmail.com>> wrote:
James,

Thank you for the reply.

I am over the first hurdle, changing the pernissions to +rx fixed it, and nagios now gives me a signon panel, however, as I explained, it does not accept the nagiosadmin username.

This is the messages I am getting:

[Mon Mar 08 19:22:22 2010] [error] [client 10.164.100.232] MySQL ERROR: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[Mon Mar 08 19:22:22 2010] [error] [client 10.164.100.232] MySQL user nagiosadmin not found: /nagios
2010/3/8 James Pratt <jpratt at norwich.edu<mailto:jpratt at norwich.edu>>

>From what I can see, the perms shouldn't be a big problem , mine are all
owned by nagios:nagios -

if you remove the .htaccess auth parts, can you get in and view the
CGI's normally?

what do your Apache error and access logs say?

Hth


Cheers,
jamie
>> -----Original Message-----
>> From: Robert Wolfe [mailto:rwolfe at i-evolve.com<mailto:rwolfe at i-evolve.com>]
>> Sent: Monday, March 08, 2010 1:20 PM
>> To: 'Gezina Dekker'; nagios-users at lists.sourceforge.net<mailto:nagios-users at lists.sourceforge.net>
>> Subject: Re: [Nagios-users] You do not have permission to access
/nagios on this server
>>
>> Try setting ownership of these files to user nagios, group nagios.
>>
>>
>>
>>
>>
>>
>>
>> From: Gezina Dekker [mailto:gezinker at gmail.com<mailto:gezinker at gmail.com>]
>> Sent: Monday, March 08, 2010 1:17 PM
>> To: nagios-users at lists.sourceforge.net<mailto: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

------------------------------------------------------------------------------
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
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net<mailto: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


------------------------------------------------------------------------------
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
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net<mailto: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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100308/0312484e/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