Configuration Errors

Nick Hayward hayward.nick.j at gmail.com
Thu Aug 9 01:07:20 CEST 2007


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

I receive this output:
root at dc2-storage-01:/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:
root at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070808/57df53e9/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
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/
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at 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


More information about the Users mailing list