Problem getting past main page

Guy Waugh guidosh at gmail.com
Thu Jun 25 15:57:23 CEST 2009


Hi again,

Strange...

Some questions:

You're sure you restarted apache after editing httpd.conf?
What is the output of 'apachectl configtest'?
What files are in /usr/local/nagios/sbin -- are they files like
'status.cgi', 'avail.cgi', 'cmd.cgi' etc.? Are they executable by the user
that apache is running as?
Is there anything useful in the apache error logs?
What do you see when you go to http://<nagioshost>/nagios with your web
browser? Is that when you get the error below?
Is the nagios host a Linux or Unix host (sorry, can't remember if you've
specified this before)? If so, which flavour/version?
Did you compile nagios on this host, install it via a package manager, or
copy it from another host?

Cheers,
Guy.

On Thu, Jun 25, 2009 at 2:35 PM, Kaplan, Andrew H. <AHKAPLAN at partners.org>wrote:

>  Hi there --
>
> Thanks for your reply. I made the change that you suggested, and
> subsequently restarted the Apache and Nagios applications.
>
> Unfortunately, the problem still occurs. Here is the output that I am
> seeing:
>
>  Not Found
>
> The requested URL /nagios/cgi-bin/status.cgi was not found on this server.
>
> I can't figure out what is going on with this. Enclosed is the updated
> version of the httpd.conf with the changes that were suggested.
>
> I am desperate at this point...
>
>
>
>
>
>
>  ------------------------------
> *From:* Guy Waugh [mailto:guidosh at gmail.com]
> *Sent:* Thursday, June 25, 2009 4:15 AM
> *To:* Kaplan, Andrew H.; nagios-users at lists.sourceforge.net
> *Subject:* Re: [Nagios-users] Problem getting past main page
>
> Hi Andrew,
>
> On Thu, Jun 25, 2009 at 12:24 AM, Kaplan, Andrew H. <AHKAPLAN at partners.org
> > wrote:
>
>>  This issue is an offshoot of the Problem in preflight check with
>> commands.cfg.
>>
>> I went ahead and copied the nagios directory from our original server to
>> the new
>> one. Once that was done, I did the upgrade to version 3.1.2 of nagios. The
>> main page
>> of the application appears without a problem. However, whenever I try to
>> go to any one
>> of the links from the main page, an error message similar to the one below
>> appears
>> on-screen:
>>
>> *Not Found*
>> *The requested URL /nagios/cgi-bin/status.cgi was not found on this
>> server.*
>>
>
> 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:
>
> ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
>
> Cheers,
> Guy.
>
>
>>  **
>>
>> I noticed that after I inserted the snippets from the nagios.conf file
>> into the
>> httpd.conf file, and subsequently restarted the Apache server, the
>> following
>> errors appeared on-screen:
>>
>> *Starting httpd: The ScriptAlias directive in /etc/httpd/conf/httpd.conf
>> at line*
>> *566 will probably never match because it overlaps an earlier
>> ScriptAlias.*
>> *[warn] The Alias directive in /etc/httpd/conf/httpd.conf at line 583
>> will*
>> *probably never match because it overlaps an earlier Alias.*
>>
>> I have enclosed a copy of the httpd.conf file in its present version. I am
>> at a
>> lossas to why the error message is occurring, and I would really
>> appreciate help on
>> this.
>>
>> <<httpd.conf>>
>>
>> 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 athttp://www.partners.org/complianceline . 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.
>>
>>
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> 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
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090625/5708be4c/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
-------------- 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