Error: Timeperiod 'none' has already been defined

Raquel Real Lopez rrl62 at tid.es
Thu Aug 26 14:39:22 CEST 2004


Hello!

- Nagios has been installed in a Mandrake 9.1 system. When I try to
execute Nagios, the following error appear:

/etc/init.d/nagios start
Starting network monitor: nagios
No lock file found in /var/run/nagios.pid


- If I test the nagios configuration file (nagios -v nagios.conf), the
following error appear: 

Nagios 1.2
Copyright (c) 1999-2004 Ethan Galstad (nagios at nagios.org)
Last Modified: 02-02-2004
License: GPL

Reading configuration data...

Error: Timeperiod 'none' has already been defined

Error: Could not register timeperiod (config file
'/etc/nagios/timeperiods.cfg', line 61)


***> 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 on the main and host config files, as well
as the
     'Whats New' section to find out what has changed.


- The log types "Error: Timeperiod 'none' has already been defined". But
I don`t know why.


- The file timeperiods.cfg contains:

################################################################################
# Sample object config file for Nagios
#
# Read the documentation for more information on this configuration
file.  I've
# provided some comments here, but things may not be so clear without
further
# explanation, so make sure to read the HTML documentation!
#
# Last Modified: 03-07-2002
#
################################################################################


################################################################################
# TIMEPERIOD DEFINITIONS
#
# SYNTAX:
#
################################################################################

# '24x7' timeperiod definition
define timeperiod{
        timeperiod_name 24x7
        alias           24 Hours A Day, 7 Days A Week
        sunday          00:00-24:00
        monday          00:00-24:00
        tuesday         00:00-24:00
        wednesday       00:00-24:00
        thursday        00:00-24:00
        friday          00:00-24:00
        saturday        00:00-24:00
        }


# 'workhours' timeperiod definition
define timeperiod{
        timeperiod_name workhours
        alias           "Normal" Working Hours
        monday          09:00-17:00
        tuesday         09:00-17:00
        wednesday       09:00-17:00
        thursday        09:00-17:00
        friday          09:00-17:00
        }


# 'nonworkhours' timeperiod definition
define timeperiod{
        timeperiod_name nonworkhours
        alias           Non-Work Hours
        sunday          00:00-24:00
        monday          00:00-09:00,17:00-24:00
        tuesday         00:00-09:00,17:00-24:00
        wednesday       00:00-09:00,17:00-24:00
        thursday        00:00-09:00,17:00-24:00
        friday          00:00-09:00,17:00-24:00
        saturday        00:00-24:00
        }


# 'none' timeperiod definition
define timeperiod{
        timeperiod_name none
        alias           No Time Is A Good Time
        }


- If I delete the "none timeperiod definition" and I test the nagios
configuration file, then it appears the same error:
Error: Timeperiod 'nonworkhours' has already been defined

Error: Could not register timeperiod (config file
'/etc/nagios/timeperiods.cfg', line 47)


...

- Can anybody help me?




-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
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