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. 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 loss as to why the error message is occurring, and I would really appreciate help on this. -----Original Message----- From: Natxo Asenjo [mailto:natxo.ase...@gmail.com] Sent: Wednesday, June 24, 2009 7:14 AM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Problem in Preflight Check with commands.cfg On Fri, Jun 19, 2009 at 10:52 PM, Kaplan, Andrew H.<ahkap...@partners.org> wrote: > /usr/sbin/nagios3 -v /etc/nagios3/nagios.cfg > Nagios 3.0.6 > Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org) > Last Modified: 12-01-2008 > License: GPL > Reading configuration data... > Warning: Duplicate definition found for command 'check_dns' (config file > '/etc/nagios3/conf.d/commands.cfg', starting on line 90) > Error: Could not add object property in file '/etc/nagios3/conf.d/commands.cfg' > on line 91. I would start grepping in /etc/nagios3 for check_dns (you can grep recursively and ignoring case sensitivity with the options -ri ). something like this, then: # cd /etc/nagios3 # grep -ri "check_dns" * See what you get, somewhere you have a duplicate command in your configuration. Natxo ------------------------------------------------------------------------------ _______________________________________________ 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 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.
httpd.conf
Description: httpd.conf
------------------------------------------------------------------------------
_______________________________________________ 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