recurring downtime

Julie S. Lin JLin at livescribe.com
Fri May 13 02:57:42 CEST 2011


HI

I'm trying to set up recurring downtimes for automatic reboots  Below  
is my script
however , in the web interface under scheduled downtimes, I do not see  
this entry.

the results are in my tmp fie and I see the event log saying the  
command is added
[1300246895]  
SCHEDULE_SVC_DOWNTIME 
;host1;service1;1410741500;1410741700;0;0;7200;Some One;Some Downtime  
Comment

am I missing something?

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

#!/bin/sh
# This is a sample shell script showing how you can submit the  
SCHEDULE_SVC_DOWNTIME command
# to Nagios.  Adjust variables to fit your environment as necessary.

now=`date +%s`
commandfile='/usr/local/nagios/var/rw/nagios.cmd'

printf "[%lu] SCHEDULE_SVC_DOWNTIME;host1;smtp; 
1410741500;1410741700;1;0;7200;Some One;Some Downtime Comment\n" $now  
 > $commandfile
#printf "[%lu]  
SCHEDULE_SVC_DOWNTIME 
;host1;service1;1410741500;1410748700;0;0;7200;Some One;Some Downtime  
Comment\n" $now > /tmp/foome





Julie S. Lin
System Administrator
jlin at livescribe.com
(510) 553 4912 (o)
(510) 367 5772 (c)




------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
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