<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
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"><STRONG>find /usr/local/nagios/etc |xargs grep -c check_dns</STRONG></FONT><BR>
<BR>
which will find all the files with "check_dns" in it (assuming I got the command syntax right).<BR><BR>-- <BR>Mat W. - <A href="http://www.techadre.com/">http://www.techadre.com</A><BR><BR><BR> <BR>> Date: Mon, 22 Jun 2009 07:55:58 -0400<BR>> From: AHKAPLAN@PARTNERS.ORG<BR>> To: nagios-users@lists.sourceforge.net<BR>> Subject: [Nagios-users] REPOST: Problem in Preflight Check with commands.cfg<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 (http://www.nagios.org)<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: nagios-users@lists.sourceforge.net<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 (http://www.nagios.org)<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>> http://www.partners.org/complianceline . 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>> http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org<BR>> _______________________________________________<BR>> Nagios-users mailing list<BR>> Nagios-users@lists.sourceforge.net<BR>> https://lists.sourceforge.net/lists/listinfo/nagios-users<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>> http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org<BR>> _______________________________________________<BR>> Nagios-users mailing list<BR>> Nagios-users@lists.sourceforge.net<BR>> https://lists.sourceforge.net/lists/listinfo/nagios-users<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 /><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='_new'>See how.</a></body>
</html>