try<br><br><b>grep -ir check_dns /etc/nagios3/*</b><br><br>it will show all occurences of check_dns<br><br><br><br><div class="gmail_quote">2009/6/22 Mat W <span dir="ltr"><<a href="mailto:lmw94002@hotmail.com">lmw94002@hotmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



<div>
Perhaps you added another "config" file that has a check_dns command?  <br>
 <br>
I've seen installations where people like to break out the larger config files into a directory with smaller configs.<br>
 <br>
you could do something like... <br>
 <br>
<font face="Courier New"><b>find /usr/local/nagios/etc |xargs grep -c check_dns</b></font><br>
 <br>
which will find all the files with "check_dns" in it (assuming I got the command syntax right).<div class="im"><br><br>-- <br>Mat W. - <a href="http://www.techadre.com/" target="_blank">http://www.techadre.com</a><br>
<br><br> <br></div>> Date: Mon, 22 Jun 2009 07:55:58 -0400<br>> From: <a href="mailto:AHKAPLAN@PARTNERS.ORG" target="_blank">AHKAPLAN@PARTNERS.ORG</a><div class="im"><br>> To: <a href="mailto:nagios-users@lists.sourceforge.net" target="_blank">nagios-users@lists.sourceforge.net</a><br>
</div>> Subject: [Nagios-users] REPOST: Problem in Preflight Check with commands.cfg<div><div></div><div class="h5"><br>> <br>> 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" target="_blank">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" target="_blank">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" target="_blank">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><br></div></div><div class="hm"><hr>Insert movie times and more without leaving HotmailŪ. <a href="http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd_062009" target="_blank">See how.</a></div>
</div>
<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>