<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-15">
<TITLE>Problem with CGI</TITLE>
<META content="MSHTML 6.00.2716.2200" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=343274719-09102002><FONT face=Arial color=#0000ff size=2>The
plug-ins are not part of the core program. You will need to download them from
the Nagios website.</FONT></SPAN></DIV>
<DIV><SPAN class=343274719-09102002><FONT face=Arial color=#0000ff size=2>Once
downloaded you can extract them and run the configure script and associated make
commands</FONT></SPAN></DIV>
<DIV><SPAN class=343274719-09102002><FONT face=Arial color=#0000ff size=2>to
install them into the Nagios directory.</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Garrett Anestos
[mailto:GANESTOS@fisinc.com]<BR><B>Sent:</B> Wednesday, October 09, 2002 3:42
PM<BR><B>To:</B> Kaplan, Andrew H.<BR><B>Subject:</B> RE: [Nagios-users]
Problem with CGI<BR><BR></FONT></DIV>
<DIV><SPAN class=525423219-09102002><FONT face=Arial color=#0000ff
size=2>Thanks Andrew.</FONT></SPAN></DIV>
<DIV><SPAN class=525423219-09102002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=525423219-09102002><FONT face=Arial color=#0000ff
size=2>Quick question for you........</FONT></SPAN></DIV>
<DIV><SPAN class=525423219-09102002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=525423219-09102002><FONT face=Arial color=#0000ff size=2>Did
my configuration look ok for the directories? Why do I not have a
cgi-bin directory in the Nagios directory?</FONT></SPAN></DIV>
<DIV><SPAN class=525423219-09102002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=525423219-09102002><FONT face=Arial color=#0000ff
size=2>Thanks for your help!</FONT></SPAN></DIV>
<DIV><SPAN class=525423219-09102002>
<P><FONT size=2>ScriptAlias /netsaint/nagios/cgi-bin/
/netsaint/nagios/sbin/</FONT> <BR><FONT size=2><Directory
"/netsaint/nagios/sbin/"></FONT> <BR><FONT size=2>
AllowOverride AuthConfig</FONT> <BR><FONT size=2> Options
ExecCGI</FONT> <BR><FONT size=2> Order allow,deny</FONT>
<BR><FONT size=2> Allow from all</FONT> <BR><FONT
size=2></Directory></FONT> </P>
<P><FONT size=2></FONT> </P></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Kaplan, Andrew H.
[mailto:AHKAPLAN@PARTNERS.ORG]<BR><B>Sent:</B> Wednesday, October 09, 2002
12:18 PM<BR><B>To:</B> 'Garrett Anestos'<BR><B>Cc:</B>
'nagios-users@lists.sourceforge.net'<BR><B>Subject:</B> RE: [Nagios-users]
Problem with CGI<BR><BR></FONT></DIV>
<DIV><SPAN class=000371919-09102002><FONT face=Arial color=#0000ff
size=2>One thing I would check to see is if the default cgi-bin directive is
either altered or commented out. I prefer commenting it out rather than
altering it in order to have it available </FONT></SPAN></DIV>
<DIV><SPAN class=000371919-09102002><FONT face=Arial color=#0000ff size=2>as
a template. </FONT></SPAN></DIV>
<DIV><SPAN class=000371919-09102002><FONT face=Arial color=#0000ff
size=2>The default directive has the heading </FONT></SPAN></DIV>
<DIV><SPAN class=000371919-09102002><FONT face=Arial color=#0000ff
size=2> "/usr/local/apache<EM>version number</EM>/cgi-bin"
should be changed to whatever your ScriptAliased CGI directory exists if you
have </FONT></SPAN><SPAN class=000371919-09102002><FONT face=Arial
color=#0000ff size=2>that configured.</FONT></SPAN></DIV>
<DIV><SPAN class=000371919-09102002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=000371919-09102002><FONT face=Arial color=#0000ff
size=2>Commenting out the default lines and then subsequently restarting the
Apache server may help.</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Garrett Anestos
[mailto:GANESTOS@fisinc.com]<BR><B>Sent:</B> Wednesday, October 09, 2002
3:07 PM<BR><B>To:</B>
nagios-users@lists.sourceforge.net<BR><B>Subject:</B> [Nagios-users]
Problem with CGI<BR><BR></FONT></DIV>
<P><FONT size=2>Hello all-</FONT> </P>
<P><FONT size=2>I have installed Nagios on a FreeBSD box and I'm having
issues access the website. I believe my issue resides in the
httpd.conf file. I'm a bit of a newbie when it comes to
Apache.</FONT></P>
<P><FONT size=2>In the directions it tells me to add this......</FONT>
</P>
<P><FONT size=2>ScriptAlias /nagios/cgi-bin/
/usr/local/nagios/sbin/</FONT> <BR><FONT size=2><Directory
"/usr/local/nagios/sbin/"></FONT> <BR><FONT size=2>
AllowOverride AuthConfig</FONT> <BR><FONT size=2>
Options ExecCGI</FONT> <BR><FONT size=2> Order
allow,deny</FONT> <BR><FONT size=2> Allow from
all</FONT> <BR><FONT size=2></Directory></FONT> </P><BR>
<P><FONT size=2>and this ..............</FONT> </P>
<P><FONT size=2>Alias /nagios/ /usr/local/nagios/share/</FONT> <BR><FONT
size=2><Directory "/usr/local/nagios/share"></FONT> <BR><FONT
size=2> Options None</FONT> <BR><FONT
size=2> AllowOverride AuthConfig</FONT> <BR><FONT
size=2> Order allow,deny</FONT> <BR><FONT
size=2> Allow from all</FONT> <BR><FONT
size=2></Directory></FONT> </P>
<P><FONT size=2>Into the the httpd.conf. I guess it does not mater
where they go as long as the top one is before the bottom one listed
above. Correct? or do they need to go in the Aliases section of the
httpd.conf file? If it goes in the script area do I replace the
current ones or just add the new ones?</FONT></P>
<P><FONT size=2>Now the /usr/local/nagios section in the above
ScriptAlias/Alias is different on my installation. Mine is
/netsaint/nagios/sbin which I have adjusted. Also I do not have a
/nagios/cgi-bin directory as stated above.....do I need to have one?
If so do I just use the default Apache one? Do i need to adjust it like
so?</FONT></P>
<P><FONT size=2>ScriptAlias /netsaint/nagios/cgi-bin/
/netsaint/nagios/sbin/</FONT> <BR><FONT size=2><Directory
"/netsaint/nagios/sbin/"></FONT> <BR><FONT size=2>
AllowOverride AuthConfig</FONT> <BR><FONT size=2>
Options ExecCGI</FONT> <BR><FONT size=2> Order
allow,deny</FONT> <BR><FONT size=2> Allow from
all</FONT> <BR><FONT size=2></Directory></FONT> </P>
<P><FONT size=2>And similar with the Alias section? </FONT></P>
<P><FONT size=2>Thanks for your help!</FONT> </P>
<P><FONT size=2>G</FONT>
</P></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>