<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>It sounds like he may have Apache logging directed to a MySQL
database.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Noel Platzke
[mailto:neufpas@gmail.com] <br>
<b>Sent:</b> Monday, March 08, 2010 4:02 PM<br>
<b>To:</b> nagios List<br>
<b>Subject:</b> Re: [Nagios-users] You do not have permission to access /nagios
on this server<o:p></o:p></span></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal style='margin-bottom:12.0pt'>You posted a MySQL error. The
error you should be seeing will be in the apache logs. I'm kind of confused.<br>
<br>
<br>
<o:p></o:p></p>
<div>
<p class=MsoNormal>On Mon, Mar 8, 2010 at 3:47 PM, Gezina Dekker <<a
href="mailto:gezinker@gmail.com">gezinker@gmail.com</a>> wrote:<o:p></o:p></p>
<div>
<p class=MsoNormal>James,<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> <o:p></o:p></p>
</div>
<div>
<div>
<p class=MsoNormal>Thank you for the reply.<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> <o:p></o:p></p>
</div>
<div>
<p class=MsoNormal>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.<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal> <o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'>This is the messages I am
getting:<br>
<br>
[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)<br>
[Mon Mar 08 19:22:22 2010] [error] [client 10.164.100.232] MySQL user
nagiosadmin not found: /nagios<o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class=MsoNormal>2010/3/8 James Pratt <<a href="mailto:jpratt@norwich.edu"
target="_blank">jpratt@norwich.edu</a>><o:p></o:p></p>
</div>
<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;
margin-left:4.8pt;margin-right:0in'>
<p class=MsoNormal><o:p> </o:p></p>
<div>
<div>
<p class=MsoNormal>>From what I can see, the perms shouldn't be a big
problem , mine are all<br>
owned by nagios:nagios -<br>
<br>
if you remove the .htaccess auth parts, can you get in and view the<br>
CGI's normally?<br>
<br>
what do your Apache error and access logs say?<br>
<br>
Hth<br>
<br>
<br>
Cheers,<br>
jamie<o:p></o:p></p>
<div>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'>>> -----Original
Message-----<br>
>> From: Robert Wolfe [mailto:<a href="mailto:rwolfe@i-evolve.com"
target="_blank">rwolfe@i-evolve.com</a>]<br>
>> Sent: Monday, March 08, 2010 1:20 PM<br>
>> To: 'Gezina Dekker'; <a
href="mailto:nagios-users@lists.sourceforge.net" target="_blank">nagios-users@lists.sourceforge.net</a><br>
>> Subject: Re: [Nagios-users] You do not have permission to access<br>
/nagios on this server<br>
>><br>
>> Try setting ownership of these files to user nagios, group nagios.<br>
>><br>
>><br>
>><br>
>><br>
>><br>
>><br>
>><br>
>> From: Gezina Dekker [mailto:<a href="mailto:gezinker@gmail.com"
target="_blank">gezinker@gmail.com</a>]<br>
>> Sent: Monday, March 08, 2010 1:17 PM<br>
>> To: <a href="mailto:nagios-users@lists.sourceforge.net" target="_blank">nagios-users@lists.sourceforge.net</a><br>
>> Subject: [Nagios-users] You do not have permission to access /nagios<br>
on this server<br>
>><br>
>><br>
>><br>
>> Hi all,<br>
>><br>
>> I have looked at all the questions so far, and nothing that brings<br>
any comfort.<br>
>><br>
>> I followed the Fedore QuickStart even though I am on RHEL 4<br>
(2.6.9-5.EL)<br>
>><br>
>> I have all the following installed:<br>
>> Apache<br>
>> PHP<br>
>> GCC compiler<br>
>> GD development libraries<br>
>><br>
>> I have nagios and nagcmd defined<br>
>><br>
>> I have installed nagios and the plugins<br>
>><br>
>> I have a passwd in htpasswd, and it is read acces for all.<br>
>><br>
>> SELinux is disabled<br>
>><br>
>> In terms of my nagios.conf, this is it...<br>
>><br>
>> ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"<br>
>><br>
>> <Directory "/usr/local/nagios/sbin"><br>
>> # SSLRequireSSL<br>
>> Options FollowSymLinks ExecCGI<br>
>> AllowOverride AuthConfig<br>
>> Order allow,deny<br>
>> Allow from all<br>
>> AuthName "Nagios Access"<br>
>> AuthType Basic<br>
>> AuthUserFile /usr/local/nagios/etc/htpasswd.users<br>
>> Require valid-user<br>
>> </Directory><br>
>><br>
>> Alias /nagios "/usr/local/nagios/share"<br>
>><br>
>> <Directory "/usr/local/nagios/share"><br>
>> # SSLRequireSSL<br>
>> Options FollowSymLinks<br>
>> DirectoryIndex index.html<br>
>> AllowOverride AuthConfig<br>
>> Order allow,deny<br>
>> Allow from all<br>
>> AuthName "Nagios Access"<br>
>> AuthType Basic<br>
>> AuthUserFile /usr/local/nagios/etc/htpasswd.users<br>
>> Require valid-user<br>
>> </Directory><br>
>><br>
>><br>
>> The contents of my /share is the following:<br>
>> drwxrwxr-x 9 nagios nagcmd 4096 mrt 8 11:39 .<br>
>> drwx------ 12 nagios nagcmd 4096 mrt 8 11:39 ..<br>
>> drwxrwxr-x 2 nagios nagcmd 4096 mrt 5 12:23
contexthelp<br>
>> drwxrwxr-x 3 nagios nagcmd 4096 mrt 5 12:23 docs<br>
>> drwxrwxr-x 3 nagios nagcmd 4096 mrt 5 12:23 images<br>
>> -rw-rw-r-- 1 nagios nagcmd 726 mrt 5 12:23
index.html<br>
>> drwxr-xr-x 4 root root 4096 mrt 8
11:39 locale<br>
>> -rw-rw-r-- 1 nagios nagcmd 3480 mrt 5 12:23
main.html<br>
>> drwxrwxr-x 2 nagios nagcmd 4096 mrt 5 12:23 media<br>
>> -rw-rw-r-- 1 nagios nagcmd 26 mrt 5 12:23
robots.txt<br>
>> -rw-rw-r-- 1 nagios nagcmd 13532 mrt 5 12:23 side.html<br>
>> drwxrwxr-x 2 nagios nagcmd 4096 mrt 5 12:23 ssi<br>
>> drwxrwxr-x 2 nagios nagcmd 4096 mrt 5 12:23
stylesheets<br>
>><br>
>><br>
>> The errors I am getting is the following:<br>
>><br>
>> Forbidden<br>
>> You don't have permission to access /nagios on this server.<br>
>> Additionally, a 403 Forbidden error was encountered while trying to<br>
use an<br>
>> ErrorDocument to handle the request.<br>
>><br>
>><br>
>><br>
>> Apache/2.0.52 (Red Hat) Server at 172.17.16.56 Port 80<br>
>><br>
>><br>
>> I am making the assumption that the 403 is less serious, and that it<br>
is actually the<br>
>> permissions that needs fixing...<br>
>><br>
>> Thanks in advance for your willingness to look at this with me.<br>
>><br>
>> Regards<br>
>><br>
>><br>
>><br>
>> Gezina<br>
<br>
<o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class=MsoNormal>------------------------------------------------------------------------------<br>
Download Intel® Parallel Studio Eval<br>
Try the new software tools for yourself. Speed compiling, find bugs<br>
proactively, and fine-tune applications for parallel performance.<br>
See why Intel Parallel Studio got high marks during beta.<br>
<a href="http://p.sf.net/sfu/intel-sw-dev" target="_blank">http://p.sf.net/sfu/intel-sw-dev</a><br>
_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net" target="_blank">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users"
target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<o:p></o:p></p>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<p class=MsoNormal><br>
<br>
------------------------------------------------------------------------------<br>
Download Intel® Parallel Studio Eval<br>
Try the new software tools for yourself. Speed compiling, find bugs<br>
proactively, and fine-tune applications for parallel performance.<br>
See why Intel Parallel Studio got high marks during beta.<br>
<a href="http://p.sf.net/sfu/intel-sw-dev" target="_blank">http://p.sf.net/sfu/intel-sw-dev</a><br>
_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users"
target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<o:p></o:p></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>