Help with Crontab scheduling downtime

Josh Van As jvanas at jackofallgames.com
Fri Feb 25 19:20:31 CET 2005


Can anyone help with this?  Or at least recommend a downtime scheduler
that works in 2.02b?

 

I can't figure out how to automate scheduling downtime.

 

TIA?

 

________________________________

From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Josh Van
As
Sent: Wednesday, February 23, 2005 10:41 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Help with Crontab scheduling
downtimejdets2,6:15:00,2700,CRONTAB,0123456

 

I am using the sched_host_downtime script written by Kelly Cobean.  I am
running it on RedHat Enterprise v3 Linux against Nagios 2.0b2.  I
believe I am correctly scheduling downtime for the hosts listed below
between 6:15am and 7:45AM.  However, when these hosts rebooted, we were
notified by Nagios.  The other oddity I noticed is that the downtime,
although listed in the log, never appeared in the downtime.cfg file or
in the CGI interface for "Downtime".

 

Here is my host_downtime.cfg file: 

 

jdets2,6:15:00,2700,CRONTAB,0123456

jdets3,6:30:00,2700,CRONTAB,0123456

jdets6,6:45:00,2700,CRONTAB,0123456

jdets8,7:00:00,2700,CRONTAB,0123456

jgerpctx05,7:15:00,2700,CRONTAB,0123456

jdets7,7:30:00,2700,CRONTAB,0123456

jgerpctx04,7:45:00,2700,CRONTAB,0123456

 

Here are the relevant log entries from nagios.log to prove that the cron
script executed at 12:01AM.

 

[02-23-2005 00:01:11] EXTERNAL COMMAND:
SCHEDULE_HOST_DOWNTIME;jgerpctx04;1109162700;1109165400;1;2700;CRONTAB;S
cheduled Maintenance

[02-23-2005 00:01:11] EXTERNAL COMMAND:
SCHEDULE_HOST_DOWNTIME;jdets7;1109161800;1109164500;1;2700;CRONTAB;Sched
uled Maintenance

[02-23-2005 00:01:11] EXTERNAL COMMAND:
SCHEDULE_HOST_DOWNTIME;jgerpctx05;1109160900;1109163600;1;2700;CRONTAB;S
cheduled Maintenance

[02-23-2005 00:01:11] EXTERNAL COMMAND:
SCHEDULE_HOST_DOWNTIME;jdets8;1109160000;1109162700;1;2700;CRONTAB;Sched
uled Maintenance

[02-23-2005 00:01:11] EXTERNAL COMMAND:
SCHEDULE_HOST_DOWNTIME;jdets6;1109159100;1109161800;1;2700;CRONTAB;Sched
uled Maintenance

[02-23-2005 00:01:11] EXTERNAL COMMAND:
SCHEDULE_HOST_DOWNTIME;jdets3;1109158200;1109160900;1;2700;CRONTAB;Sched
uled Maintenance

[02-23-2005 00:01:01] EXTERNAL COMMAND:
SCHEDULE_HOST_DOWNTIME;jdets2;1109157300;1109160000;1;2700;CRONTAB;Sched
uled Maintenance

 

 

TIA for the help!

 

Josh Van As

 

************************************************************************
************************************************************************
************************************************************************
**********

 The information transmitted is intended only for the person to whom it
is addressed and may be confidential and privileged and protected from
disclosure.  Any review, retransmission, dissemination or other use of,
or taking any action in reliance upon, this information by persons or
entities other than the intended recipients are prohibited. If you are
not the intended recipient, please contact the sender and delete the
material from any computer. 

************************************************************************
************************************************************************
************************************************************************
********** 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050225/9c6abcea/attachment.html>


More information about the Users mailing list