Help with Crontab scheduling downtimejdets2,6:15:00,2700,CRONTAB,0123456

Josh Van As jvanas at jackofallgames.com
Wed Feb 23 16:40:35 CET 2005


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/20050223/84210a68/attachment.html>


More information about the Users mailing list