Ahhh... perhaps you're calling the directory as well as the file explicitly in
nagios.cfg?
--
Mat W. - http://www.techadre.com
> Date: Mon, 22 Jun 2009 05:12:29 -0700
> From: [email protected]
> CC: [email protected]
> Subject: Re: [Nagios-users] REPOST: Problem in Preflight Check with
> commands.cfg
>
> I would suggest that you use grep to be sure you really caught all
> configuration files (grep -ri "check_dns" /etc/nagios3).
>
> My guess, though - just a hunch - is that you may be accidentally
> including the same file twice in your nagios.cfg. For instance, you may
> have explicitly specified it in nagios.cfg, and it may also get
> automatically included because it is in the conf.d directory.
>
> Another possibility is that the directory structures of the old and new
> nagios servers don't match, and you somehow ended up with two separate
> command.cfg files.
>
> Kaplan, Andrew H. wrote:
> > Hi there--
> >
> > I am reposting this question due to a lack of response. I really am in need
> > of
> > help here, and any would be greatly appreciated. Thanks.
> >
> > I have completed the installation of Nagios 3.0.6 onto an Ubuntu 9.04 server
> > using the apt-get utility. We currently have a Nagios 2.6 server running,
> > and
> > I wanted to import the configuration files into the newer server. To that
> > end,
> > I have placed the appropriate configuration files in the /etc/nagios3/conf.d
> > directory, and modified the nagios.cfg file to reflect the location of the
> > configuration files.
> >
> > I ran the preflight check and the following error message appeared
> > on-screen:
> >
> > /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.
> > ***> One or more problems was encountered while processing the config
> > files...
> > Check your configuration file(s) to ensure that they contain valid
> > directives and data defintions. If you are upgrading from a previous
> > version of Nagios, you should be aware that some variables/definitions
> > may have been removed or modified in this version. Make sure to read
> > the HTML documentation regarding the config files, as well as the
> > 'Whats New' section to find out what has changed.
> >
> > I checked the commands.cfg, and several other files, and I do not see where
> > the
> > duplicate definition is occurring.
> > Can someone lend a hand on this? Thanks.
> >
> > -----Original Message-----
> > From: Kaplan, Andrew H.
> > Sent: Friday, June 19, 2009 4:52 PM
> > To: [email protected]
> > Subject: [Nagios-users] Problem in Preflight Check with commands.cfg
> >
> > Hi there --
> >
> > I have completed the installation of Nagios 3.0.6 onto an Ubuntu 9.04 server
> > using the apt-get utility.
> > We currently have a Nagios 2.6 server running, and I wanted to import the
> > configuration files into the
> > newer server. To that end, I have placed the appropriate configuration
> > files in
> > the /etc/nagios3/conf.d
> > directory, and modified the nagios.cfg file to reflect the location of the
> > configuration files.
> >
> > I ran the preflight check and the following error message appeared
> > on-screen:
> >
> > /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.
> > ***> One or more problems was encountered while processing the config
> > files...
> > Check your configuration file(s) to ensure that they contain valid
> > directives and data defintions. If you are upgrading from a previous
> > version of Nagios, you should be aware that some variables/definitions
> > may have been removed or modified in this version. Make sure to read
> > the HTML documentation regarding the config files, as well as the
> > 'Whats New' section to find out what has changed.
> >
> > I checked the commands.cfg, and several other files, and I do not see where
> > the
> > duplicate definition is occurring.
> > Can someone lend a hand on this? Thanks.
> >
>
> --
> Kevin Keane
> Owner
> The NetTech
> Find the Uncommon: Expert Solutions for a Network You Never Have to Think
> About
>
> Office: 866-642-7116
> http://www.4nettech.com
>
> This e-mail and attachments, if any, may contain confidential and/or
> proprietary information. Please be advised that the unauthorized use or
> disclosure of the information is strictly prohibited. The information herein
> is intended only for use by the intended recipient(s) named above. If you
> have received this transmission in error, please notify the sender
> immediately and permanently delete the e-mail and any copies, printouts or
> attachments thereof.
>
>
> ------------------------------------------------------------------------------
> Are you an open source citizen? Join us for the Open Source Bridge conference!
> Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
> Need another reason to go? 24-hour hacker lounge. Register today!
> http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
> _______________________________________________
> Nagios-users mailing list
> [email protected]
> 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
_________________________________________________________________
Lauren found her dream laptop. Find the PC that’s right for you.
http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290
------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Nagios-users mailing list
[email protected]
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