Configuration Errors


#1

Hi, any help you can give would be greatly appreciated.

I receive this output:
root@dc2-storage-01:/usr/local/nagios/bin# ./nagios -v /usr/local/nagios/etc/nagios.cfg

Nagios 2.9
Copyright © 1999-2007 Ethan Galstad (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:
root@dc2-storage-01:/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.