Hi there,<br><br>All I can suggest is:<br><br>1. "cd /etc/nagios3/conf.d; grep -r check_dns *" and see if the command definition appears twice anywhere;<br>2. Vet your nagios.cfg carefully and make sure you're not inadvertently including the same file twice, files from somewhere else etc.; and<br>
3. Deleting the lines around the definition of the check_dns command, and the command definition itself, and retyping it manually (to make sure no strange characters have found their way in there somewhere).<br><br>You've probably done the equivalent of all those already, but that's all I can think of...<br>
<br>Cheers,<br>Guy.<br><br><div class="gmail_quote">On Mon, Jun 22, 2009 at 12:55 PM, 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;">
Hi there--<br>
<br>
I am reposting this question due to a lack of response. I really am in need of<br>
help here, and any would be greatly appreciated. Thanks.<br>
<br>
I have completed the installation of Nagios 3.0.6 onto an Ubuntu 9.04 server<br>
using the apt-get utility. We currently have a Nagios 2.6 server running, and<br>
I wanted to import the configuration files into the newer server. To that end,<br>
I have placed the appropriate configuration files in the /etc/nagios3/conf.d<br>
directory, and modified the nagios.cfg file to reflect the location of the<br>
configuration files.<br>
<br>
I ran the preflight check and the following error message appeared on-screen:<br>
<br>
/usr/sbin/nagios3 -v /etc/nagios3/nagios.cfg<br>
Nagios 3.0.6<br>
Copyright (c) 1999-2008 Ethan Galstad (<a href="http://www.nagios.org" target="_blank">http://www.nagios.org</a>)<br>
Last Modified: 12-01-2008<br>
License: GPL<br>
Reading configuration data...<br>
Warning: Duplicate definition found for command 'check_dns' (config file<br>
'/etc/nagios3/conf.d/commands.cfg', starting on line 90)<br>
Error: Could not add object property in file '/etc/nagios3/conf.d/commands.cfg'<br>
on line 91.<br>
***> One or more problems was encountered while processing the config files...<br>
     Check your configuration file(s) to ensure that they contain valid<br>
     directives and data defintions.  If you are upgrading from a previous<br>
     version of Nagios, you should be aware that some variables/definitions<br>
     may have been removed or modified in this version.  Make sure to read<br>
     the HTML documentation regarding the config files, as well as the<br>
     'Whats New' section to find out what has changed.<br>
<br>
I checked the commands.cfg, and several other files, and I do not see where the<br>
duplicate definition is occurring.<br>
Can someone lend a hand on this? Thanks.<br>
<br>
-----Original Message-----<br>
From: Kaplan, Andrew H.<br>
Sent: Friday, June 19, 2009 4:52 PM<br>
To: <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>
Subject: [Nagios-users] Problem in Preflight Check with commands.cfg<br>
<br>
Hi there --<br>
<br>
I have completed the installation of Nagios 3.0.6 onto an Ubuntu 9.04 server<br>
using the apt-get utility.<br>
We currently have a Nagios 2.6 server running, and I wanted to import the<br>
configuration files into the<br>
newer server. To that end, I have placed the appropriate configuration files in<br>
the /etc/nagios3/conf.d<br>
directory, and modified the nagios.cfg file to reflect the location of the<br>
configuration files.<br>
<br>
I ran the preflight check and the following error message appeared on-screen:<br>
<br>
/usr/sbin/nagios3 -v /etc/nagios3/nagios.cfg<br>
Nagios 3.0.6<br>
Copyright (c) 1999-2008 Ethan Galstad (<a href="http://www.nagios.org" target="_blank">http://www.nagios.org</a>)<br>
Last Modified: 12-01-2008<br>
License: GPL<br>
Reading configuration data...<br>
Warning: Duplicate definition found for command 'check_dns' (config file<br>
'/etc/nagios3/conf.d/commands.cfg', starting on line 90)<br>
Error: Could not add object property in file '/etc/nagios3/conf.d/commands.cfg'<br>
on line 91.<br>
***> One or more problems was encountered while processing the config files...<br>
     Check your configuration file(s) to ensure that they contain valid<br>
     directives and data defintions.  If you are upgrading from a previous<br>
     version of Nagios, you should be aware that some variables/definitions<br>
     may have been removed or modified in this version.  Make sure to read<br>
     the HTML documentation regarding the config files, as well as the<br>
     'Whats New' section to find out what has changed.<br>
<br>
I checked the commands.cfg, and several other files, and I do not see where the<br>
duplicate definition is occurring.<br>
Can someone lend a hand on this? Thanks.<br>
<br>
<br>
<br>
<br>
The information in this e-mail is intended only for the person to whom it is<br>
addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
contains patient information, please contact the Partners Compliance HelpLine at<br>
<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<br>
but does not contain patient information, please contact the sender and properly<br>
dispose of the e-mail.<br>
<br>
<br>
------------------------------------------------------------------------------<br>
Are you an open source citizen? Join us for the Open Source Bridge conference!<br>
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.<br>
Need another reason to go? 24-hour hacker lounge. Register today!<br>
<a href="http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org" target="_blank">http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org</a><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<br>
issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
<br>
------------------------------------------------------------------------------<br>
Are you an open source citizen? Join us for the Open Source Bridge conference!<br>
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.<br>
Need another reason to go? 24-hour hacker lounge. Register today!<br>
<a href="http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org" target="_blank">http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org</a><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>