Maybe one .cfg file is recursively including itself or another file that has a cfg_dir or cfg_file directive. Some kind of recursion?
~~BAS On Wed, 2007-08-08 at 16:07 -0700, Nick Hayward wrote: > Hi, any help you can give would be greatly appreciated. > > I receive this output: > [EMAIL PROTECTED]:/usr/local/nagios/bin# ./nagios > -v /usr/local/nagios/etc/nagios.cfg > > Nagios 2.9 > Copyright (c) 1999-2007 Ethan Galstad ( http://www.nagios.org) > Last Modified: 04-10-2007 > License: GPL > > Reading configuration data... > > Warning: Duplicate definition found for host 'generic-host' (config > file '/usr/local/nagios/etc/hosts.cfg', starting on line 140) > Warning: Duplicate definition found for host 'linux-server' (config > file '/usr/local/nagios/etc/hosts.cfg', starting on line 156) > Warning: Duplicate definition found for service > 'generic-service' (config file '/usr/local/nagios/etc/hosts.cfg', > starting on line 215) > Warning: Duplicate definition found for service > 'local-service' (config file '/usr/local/nagios/etc/hosts.cfg', > starting on line 236) > Error: Timeperiod '24x7' has already been defined > Error: Could not register timeperiod (config file > '/usr/local/nagios/etc/hosts.cfg', starting on line 24) > > I assumed there was anther configuration file somewhere that defined > the 24x7 time period, but: > [EMAIL PROTECTED]:/usr/local/nagios# grep -r "timeperiod_name 24x7" > * > etc/hosts.cfg: timeperiod_name 24x7 > I am only finding the one file. Oddly if I comment out the 24x7 > timeperiod segment it then complains about this time period not being > defined. I am not sure where to go from here. This is on a slack 10 > system with a newer kernel and packages pretty much the same as slack > 11. let me know if you need any additional info. > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ 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 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ 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