<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2604" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=616135921-04032005><FONT face=Arial color=#0000ff
size=2>Actually, that's not the problem. apache is in the same group as
the nagios user called 'nagcmd'. Here's the solution to my
problem:</FONT></SPAN></DIV>
<DIV><SPAN class=616135921-04032005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=616135921-04032005>
<P><FONT size=2>Maybe the missing / at the end of /usr/local/nagios/share in
</FONT></P>
<P><FONT size=2>Alias nagios "/usr/local/nagios/share"</FONT></P>
<P><FONT size=2>and</FONT></P>
<P><FONT size=2>Options None should at least be Options Indexes</FONT></P>
<P><FONT size=2>if you want to view index files</FONT></P>
<P></SPAN><SPAN class=616135921-04032005><FONT size=2>Thanks,</FONT></SPAN></P>
<P><SPAN class=616135921-04032005><FONT size=2><BR>Brent</FONT></SPAN></P></DIV>
<STYLE>
<!--
A.psl {
TEXT-DECORATION: none; COLOR: #4e81c4; FONT-FAMILY: Verdana,Arial,fixed
}
A:hover {
TEXT-DECORATION: underline
}
A.psl:hover {
COLOR: #999999
}
.noro {
FONT-SIZE: 8pt; COLOR: #4e81c4; FONT-FAMILY: Verdana,Arial,fixed
}
.logotext {
TEXT-DECORATION:none; FONT-SIZE: 10pt; FONT-FAMILY: Verdana,Arial,fixed
}
A.brand {
COLOR: #777777; FONT-SIZE: 7pt; FONT-FAMILY: Verdana,Arial,fixed; TEXT-DECORATION: none
}
-->
</STYLE>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma><FONT size=2><SPAN class=616135921-04032005><FONT face=Arial
color=#0000ff> </FONT></SPAN>-----Original Message-----<BR><B>From:</B>
nagios-users-admin@lists.sourceforge.net
[mailto:nagios-users-admin@lists.sourceforge.net] <B>On Behalf Of </B>Mark E.
Donaldson<BR><B>Sent:</B> Thursday, March 03, 2005 8:31 PM<BR><B>To:</B> Brent
Ryan; nagios-users@lists.sourceforge.net<BR><B>Subject:</B> RE: [Nagios-users]
Fedora 2 /Apache 2 /nagios/ Permission issue<BR><BR></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=297142603-04032005>Brent - you answered your own question. You are
running apache as user "apache". The apache user does not have permissions to
the /usr/local/nagios/share directory. Try:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=297142603-04032005></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=297142603-04032005>chown -R apache:nagios /usr/local/nagios/share
</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=297142603-04032005></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=297142603-04032005>and see if that helps</SPAN></FONT></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> nagios-users-admin@lists.sourceforge.net
[mailto:nagios-users-admin@lists.sourceforge.net] <B>On Behalf Of </B>Brent
Ryan<BR><B>Sent:</B> Thursday, March 03, 2005 9:15 AM<BR><B>To:</B>
nagios-users@lists.sourceforge.net<BR><B>Subject:</B> [Nagios-users] Fedora 2
/Apache 2 /nagios/ Permission issue<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=Arial size=2>
<DIV><SPAN class=313534216-03032005><FONT face=Arial size=2>I'm running <!--StartFragment --><FONT face="Times New Roman"><FONT size=3>
Apache/2.0.51 (Fedora) Server<SPAN class=381400517-03032005> </SPAN>and I've
followed all of the documentation<SPAN class=381400517-03032005> and I've set
nagios up before on other distributions of linux, but I'm n</SPAN>ot sure what
the problem is <SPAN class=381400517-03032005>here </SPAN>and I've read
in some forums that others have had issues with getting Nagios to work on
Fedora Linux. <SPAN class=381400517-03032005>The error I get when
navigating to <A
href="http://localhost:8080/nagios/">http://localhost:8080/nagios/</A>
is</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=313534216-03032005><FONT face=Arial size=2><FONT
face="Times New Roman"><FONT size=3><SPAN class=381400517-03032005><!--StartFragment -->
<H1>Forbidden</H1>
<P>You don't have permission to access /nagios/ on this server.</P>
<P> </P></SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=313534216-03032005><SPAN class=381400517-03032005>httpd is
running as user 'apache'</SPAN></SPAN></DIV>
<DIV><SPAN class=313534216-03032005><SPAN
class=381400517-03032005></SPAN></SPAN> </DIV>
<DIV><SPAN class=313534216-03032005>The apache error log has:</SPAN></DIV>
<DIV><SPAN class=313534216-03032005>[Thu Mar 03 09:42:44 2005] [error]
Directory index forbidden by rule: /usr/local/nagios/share<BR></SPAN></DIV>
<DIV><SPAN class=313534216-03032005></SPAN> </DIV>
<DIV><SPAN class=313534216-03032005>Any ideas on this or how to fix it?<SPAN
class=381400517-03032005> More information about my setup is
below:</SPAN></SPAN></DIV>
<DIV><SPAN class=313534216-03032005><SPAN
class=381400517-03032005></SPAN></SPAN> </DIV>
<DIV><SPAN class=313534216-03032005><SPAN
class=381400517-03032005><STRONG>/usr/local/nagios</STRONG></SPAN></SPAN></DIV>
<DIV><SPAN class=313534216-03032005><SPAN
class=381400517-03032005>drwxrwxr-x 2 nagios
nagios 4096 Mar 2 18:38 bin<BR>drwxr-xr-x
3 nagios nagios 4096 Mar 3 08:59
etc<BR>drwxr-xr-x 2 nagios nagios 4096 Mar
2 18:46 libexec<BR>drwxrwxr-x 11 nagios nagios 4096
Mar 2 18:34 nagios-2.0b2<BR>-rw-r--r-- 1 nagios nagios
5765120 Mar 2 18:25 nagios-2.0b2.tar<BR>drwxrwxrwx 10 nagios
nagios 4096 Mar 2 18:45
nagios-plugins-1.4<BR>-rw-r--r-- 1 nagios nagios 4208640 Mar
2 18:25 nagios-plugins-1.4.tar<BR>drwxrwxr-x 2 nagios
nagios 4096 Mar 3 08:46 sbin<BR>drwxrwxr-x
9 nagios nagios 4096 Mar 3 09:18
share<BR>drwxrwxr-x 3 nagios nagios 4096
Mar 2 18:38 var</SPAN></DIV></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=381400517-03032005><FONT face=Arial size=2><STRONG>httpd.conf
has the following at the bottom:</STRONG></FONT></SPAN></DIV>
<DIV><SPAN class=381400517-03032005><FONT face=Arial size=2>ScriptAlias
/nagios/cgi-bin "/usr/local/nagios/sbin"<BR><Directory
"/usr/local/nagios/sbin"><BR># SSLRequireSSL<BR>
Options ExecCGI<BR> AllowOverride AuthConfig<BR> Order
allow,deny<BR> Allow from all<BR># Order
deny,allow<BR># Deny from all<BR># Allow from
127.0.0.1<BR></Directory></FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=381400517-03032005><FONT face=Arial size=2>Alias /nagios/
"/usr/local/nagios/share"<BR><Directory
"/usr/local/nagios/share"><BR># SSLRequireSSL<BR>
Options None<BR> AllowOverride AuthConfig<BR> Order
allow,deny<BR> Allow from all<BR># Order
deny,allow<BR># Deny from all<BR># Allow from
127.0.0.1<BR></Directory></FONT></SPAN></DIV>
<DIV><SPAN class=381400517-03032005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=381400517-03032005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=381400517-03032005><FONT face=Arial
size=2>Thanks,</FONT></SPAN></DIV>
<DIV><SPAN class=381400517-03032005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=381400517-03032005><FONT face=Arial
size=2>Brent</FONT></SPAN></DIV><!--[object_id=#blackboard.com#]--><FONT
face=Tahoma size=2><FONT color=#0000ff>
<P align=center><FONT face=Tahoma size=2><FONT color=#0000ff><STRONG>Don't
miss the 2005 Blackboard Users Conference April 12-14 in Baltimore, MD!
<BR>Visit </STRONG><A
href="http://www.blackboard.com/about/events/BbUC05/index.htm"
target=_blank></STRONG><STRONG>http://www.blackboard.com/about/events/BbUC05/index.htm</A><STRONG>
for more information.</STRONG></FONT></FONT></P></FONT></FONT>
<P align=center><FONT face=Tahoma size=2><FONT color=#0000ff>This e-mail is
intended only for the personal and confidential use of the recipient(s) named
above. <BR>It may include Blackboard confidential and proprietary information,
and is not for redistribution.<BR></P></FONT></FONT><BR>-- <BR>This message
has been scanned for viruses and dangerous <BR>content by <A
href="http://www.mailscanner.info/"></B><B>MailScanner</A>, and is believed to
be clean. <BR>MailScanner at <A
href="http://www.bandwidthco.com/"></B><B>Bandwidthco.com</A> is for your
absolute protection. </STRONG><BR>-- <BR>This message has been scanned for
viruses and dangerous <BR>content by <A
href="http://www.mailscanner.info/"><B>MailScanner</B></A>, and is believed to
be clean. <BR>MailScanner at <A
href="http://www.bandwidthco.com/"><B>Bandwidthco.com</B></A> is for your
absolute protection. </B></BLOCKQUOTE></BODY></HTML>