Hi there -- I can answer your questions in the order they were asked: 1. I made sure to restart apache after the changes were made via the "sudo /etc/init.d/httpd restart" command syntax. 2. The output of the apachectl configtest is the following: [Thu Jun 25 10:22:48 2009] [warn] The ScriptAlias directive in /etc/httpd/conf/httpd.conf at line 566 will probably never match because it overlaps an earlier Alias. [Thu Jun 25 10:22:48 2009] [warn] The Alias directive in /etc/httpd/conf/httpd.conf at line 583 will probably never match because it overlaps an earlier Alias. Syntax OK 3. The files that are located in the /usr/local/nagios/sbin directory are the following: -rwxrwxr-x 1 nagios nagios 229964 Jun 24 15:48 avail.cgi -rwxrwxr-x 1 nagios nagios 225272 Jun 24 15:48 cmd.cgi -rwxrwxr-x 1 nagios nagios 193036 Jun 24 15:48 config.cgi -rwxrwxr-x 1 nagios nagios 246284 Jun 24 15:48 extinfo.cgi -rwxrwxr-x 1 nagios nagios 197292 Jun 24 15:48 histogram.cgi -rwxrwxr-x 1 nagios nagios 176684 Jun 24 15:48 history.cgi -rwxrwxr-x 1 nagios nagios 172812 Jun 24 15:48 notifications.cgi -rwxrwxr-x 1 nagios nagios 168460 Jun 24 15:48 outages.cgi -rwxrwxr-x 1 nagios nagios 172844 Jun 24 15:48 showlog.cgi -rwxrwxr-x 1 nagios nagios 234156 Jun 24 15:48 status.cgi -rwxrwxr-x 1 nagios nagios 190220 Jun 24 15:48 statusmap.cgi -rwxrwxr-x 1 nagios nagios 188940 Jun 24 15:48 statuswml.cgi -rwxrwxr-x 1 nagios nagios 172588 Jun 24 15:48 statuswrl.cgi -rwxrwxr-x 1 nagios nagios 193100 Jun 24 15:48 summary.cgi -rwxrwxr-x 1 nagios nagios 184940 Jun 24 15:48 tac.cgi -rwxrwxr-x 1 nagios nagios 201388 Jun 24 15:48 trends.cgi 4. The permissions of the files would seem to indicate the apache user has read and execute permissions. If necessary, I can change the permissions to match those of the owner and group. 5. I ran the tail -f command on the error_log file, and went through the motions of clicking on the links of the main page. The error messages appeared on-screen, while the following entries appeared in the log file: [Thu Jun 25 10:29:38 2009] [error] [<nagios server>] File does not exist: /usr/local/nagios/share/cgi-bin, referer: http://<nagios server>/nagios/side.php <http://132.183.12.194/nagios/side.php> [Thu Jun 25 10:29:44 2009] [error] [<nagios server>] File does not exist: /usr/local/nagios/share/cgi-bin, referer: http://<nagios server>/nagios/side.php <http://132.183.12.194/nagios/side.php> [Thu Jun 25 10:29:48 2009] [error] [<nagios server>] File does not exist: /usr/local/nagios/share/cgi-bin, referer: http://<nagios server>/nagios/side.php <http://132.183.12.194/nagios/side.php>
6. When I go to the http://<nagioshost>/nagios page, I get the splash screen for the Nagios application. The error occurs whenever I click on any of the links starting from the Current Status group and going down the list. 7. The host in question is a CentOS 5.3 system running on the i386 architecture. 8. The original Nagios 2.6 directory was copied as a tar file and via sftp from the original Nagios server to the new one. The tar file was extracted into the /usr/local directory. The nagios user and group were created, with the former being given a home directory and utilizing the nologin shell. The Nagios 3.1.2 application was compiled from source on the new server, with the following arguments: configured by ./configure, generated by GNU Autoconf 2.61, with options \"'--prefix=/usr/local/nagios' '--with-nagios-user=nagios' '--with-nagios-grp=nagios'\" What do you think? ________________________________ From: Guy Waugh [mailto:guid...@gmail.com] Sent: Thursday, June 25, 2009 9:57 AM To: Kaplan, Andrew H.; nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Problem getting past main page 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. <ahkap...@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:guid...@gmail.com] Sent: Thursday, June 25, 2009 4:15 AM To: Kaplan, Andrew H.; nagios-users@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. <ahkap...@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 at http://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@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
------------------------------------------------------------------------------
_______________________________________________ Nagios-users mailing list Nagios-users@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