repeating downtime

Bob Amen amen at oreilly.com
Wed Nov 12 23:31:16 CET 2003


ForMatPrO ForMatPrO wrote:
> Hi,
> 
> I was wondering if it is possible to set a repeating
> downtime.  For example, if a server is turned off
> every night between 1 and 2 am...
> 
> One way would be to create a cron and send a downtime
> command every night to the external command file, but
> I was hoping it could be set in nagios.

	The only way I found to do that is to use cron. Attached is a simple 
script to do that. It takes a host name and duration (assuming cron 
kicks it off when you want the down time to start).

Cheers,
Bob
-- 
				Bob Amen
			O'Reilly & Associates, Inc.
			    http://www.ora.com/
			  http://www.oreilly.com/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: schedule_host_downtime
URL: <https://www.monitoring-lists.org/archive/users/attachments/20031112/54e3d2c6/attachment.ksh>


More information about the Users mailing list