Hi Andrew,<br><br><div class="gmail_quote">On Thu, Jun 25, 2009 at 12:24 AM, Kaplan, Andrew H. <span dir="ltr"><<a href="mailto:AHKAPLAN@partners.org">AHKAPLAN@partners.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">







<div>


<p><font face="Courier New" size="2">This issue is an offshoot of the Problem in preflight check with commands.cfg.</font>
</p>

<p><font face="Courier New" size="2">I went ahead and copied the nagios directory from our original server to the new</font>

<br><font face="Courier New" size="2">one. Once that was done, I did the upgrade to version 3.1.2 of nagios. The main page</font>

<br><font face="Courier New" size="2">of the application appears without a problem. However, whenever I try to go to any one</font>

<br><font face="Courier New" size="2">of the links from the main page, an error message similar to the one below appears</font>

<br><font face="Courier New" size="2">on-screen:</font>
</p>

<p><b><font face="Courier New" size="2">Not Found</font></b>

<br><b><font face="Courier New" size="2">The requested URL /nagios/cgi-bin/status.cgi was not found on this server.</font></b></p></div></blockquote><div><br>Looking at your attached httpd.conf file, you seem to have configured the URL '/cgi-bin/nagios' to be the ScriptAlias for the nagios CGIs, but then you are trying to access them with the URL '/nagios/cgi-bin'. Provided the Nagios CGI scripts are in /usr/local/nagios/sbin, as they are by default, you should probably define your ScriptAlias like this:<br>
<br>ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"<br><br>Cheers,<br>Guy.<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><p><b><font face="Courier New" size="2"> </font></b>
</p>
<br>

<p><font face="Courier New" size="2">I noticed that after I inserted the snippets from the nagios.conf file into the </font>

<br><font face="Courier New" size="2">httpd.conf file, and subsequently restarted the Apache server, the following</font>

<br><font face="Courier New" size="2">errors appeared on-screen:</font>
</p>

<p><b><font face="Courier New" size="2">Starting httpd: The ScriptAlias directive in /etc/httpd/conf/httpd.conf at line</font></b>

<br><b><font face="Courier New" size="2">566 will probably never match because it overlaps an earlier ScriptAlias.</font></b>

<br><b><font face="Courier New" size="2">[warn] The Alias directive in /etc/httpd/conf/httpd.conf at line 583 will</font></b>

<br><b><font face="Courier New" size="2">probably never match because it overlaps an earlier Alias.</font></b>
</p>

<p><font face="Courier New" size="2">I have enclosed a copy of the httpd.conf file in its present version. I am at a</font>

<br><font face="Courier New" size="2">lossas to why the error message is occurring, and I would really appreciate help on</font>

<br><font face="Courier New" size="2">this. </font>
</p>

<p><font color="#000000" face="Arial" size="2"> <<httpd.conf>> </font>
</p>

<pre>The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
<a href="http://www.partners.org/complianceline" target="_blank">http://www.partners.org/complianceline</a> . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.
</pre></div>
<br>------------------------------------------------------------------------------<br>
<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<br></blockquote></div><br>