errors with timeperiods.cfg file
Sean Knox
sean.knox at sbcglobal.net
Tue Nov 5 01:21:34 CET 2002
Hi Drew,
Nagios appears to be choking on the "Sunday" line:
define timeperiod{
timeperiod_name oms
alias OMS Downtime
Sunday 04:00-03:00 <----
monday 00:00-24:00
Testing this on my own, I found that all days defined need to be in
lowercase. Change Sunday to sunday.
-sk
Drew Cullis wrote:
>Hello;
> I'm in the process of trying to schedule downtime for several servers
>that need rebooting regularly. I perused the archives and found a
>solution, namely creating another 'time period' that excludes the time
>machines need to do their thing.
> I have created the new time period entry and get and error of 'Error:
>Could not add object property in file
>'/usr/local/nagios/etc/timeperiods.cfg' on line 64.'.
> Has anyone else gotten this type of error before and how did they fix
>it? Here is the pertinent info. I'm running Nagios b6 on RH 7.2. Here
>also are lines from the time periods file, etc.
>
># 'oms' timeperiod definition
>define timeperiod{
> timeperiod_name oms
> alias OMS Downtime
> Sunday 04:00-03: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
> }
>
># 'eb-oms' host definition
>define host{
> use generic-host ; Name of host
>template to use
>
> host_name eb-oms
> alias eb-oms
> address 143.199.1.2
> check_command check-host-alive
> max_check_attempts 10
> notification_interval 120
># notification_period 24x7
> notification_period OMS
> notification_options d,u,r
> }
>
>Thanks in advance for the help.
>
>
>
-------------------------------------------------------
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com
More information about the Users
mailing list