<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=986285215-12082004>I ran
into the same problem and figured out that I needed to send a downtime
command to the command file, /usr/local/var/rw/nagios.cmd</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=986285215-12082004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=986285215-12082004>I got
this script from somebody of this list Sorry, can't remember who but would like
to thank that person. </SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=986285215-12082004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=986285215-12082004></SPAN></FONT><FONT face=Arial color=#0000ff
size=2>#!/bin/bash</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=986285215-12082004><FONT face=Arial color=#0000ff size=2>#
$1 host scheduled for downtime</FONT></SPAN></DIV>
<DIV><SPAN class=986285215-12082004><FONT face=Arial color=#0000ff size=2># $2
time to start scheduled downtime</FONT></SPAN></DIV>
<DIV><SPAN class=986285215-12082004><FONT face=Arial color=#0000ff size=2># $3
length in minutes of downtime</FONT></SPAN></DIV>
<DIV><SPAN class=986285215-12082004><FONT face=Arial color=#0000ff size=2># $4
fixed flag - see Nagios documentation - defaults to 0</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><BR>USER1=/usr/nagios</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2>now=$(date
+%s)<BR>host=$1<BR>from=$(date --date="$2"
+%s)<BR>duration=$3<BR>till=$(($from+$duration))</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><BR>fixed=0</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><BR>if [ ! -z "$4"
]<BR>then<BR> fixed=$4<BR>fi</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2>echo "[$now]
SCHEDULE_HOST_DOWNTIME;$host;$from;$till;$fixed;$duration;Nagios Cron;Scheduled
Downtime" >> $USER1/var/rw/nagios.cmd<BR></DIV>
<DIV><BR></DIV></FONT>
<P><FONT size=2>--------------------------------------<BR>Ned D Hanks<BR>IT
Manager<BR>Geneva Steel, LLC<BR>10 South Geneva Rd<BR>Vineyard, UT
84058<BR>Office: 801-227-9182<BR>Fax: 801-227-9400<BR> </FONT> </P>
<BLOCKQUOTE>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B>
nagios-users-admin@lists.sourceforge.net
[mailto:nagios-users-admin@lists.sourceforge.net]<B>On Behalf Of
</B>lhill@groupit.com<BR><B>Sent:</B> Wednesday, August 11, 2004 1:43
PM<BR><B>To:</B> nagios-users@lists.sourceforge.net<BR><B>Subject:</B>
[Nagios-users] Recurring downtime: necessary to restart nagios to reread the
downtime.log?<BR><BR></FONT></DIV><BR><FONT face=sans-serif size=2>I have a
cronjob append a new downtime to the downtime.log and comments.log each night.
Although the log is getting updated correctly, Nagios does not recognize the
downtime until I restart the service. OTOH, it does reread the comment.log, so
those messages get added to the comments list each night. I understand the
need for restart to reread cfg files, but am I missing something concerning
getting Nagios to reread the downtime.log?</FONT> <BR><BR><FONT
face=sans-serif size=2>Thanks,</FONT> <BR><FONT face=sans-serif
size=2><BR>Lance Hill<BR>GroupIT<BR>______________________________<BR>Tel.:
416.703.2896 ext. 107<BR>Fax: 416.703.2987<BR>http://www.groupit.com<BR>IBM
Premier Business and Lotus Partner <BR>e-firm certified
</FONT></BLOCKQUOTE></BODY></HTML>