Scheduling downtime

Fran=?utf-8?B?w6c=?=ois Laupretre francois.laupretre-prestataire at calyon.com
Tue May 24 10:46:11 CEST 2005


You don't have to create the file 'downtime.dat'. It is managed by the
nagios daemon. And the information you are missing is that a scheduled
downtime must be set from the outside via some undocumented external
commands :
 
SCHEDULE_HOST_DOWNTIME
SCHEDULE_AND_PROPAGATE_HOST_DOWNTIME
SCHEDULE_AND_PROPAGATE_TRIGGERED_HOST_DOWNTIME
SCHEDULE_SVC_DOWNTIME
SCHEDULE_HOSTGROUP_HOST_DOWNTIME
SCHEDULE_HOSTGROUP_SVC_DOWNTIME
SCHEDULE_SERVICEGROUP_HOST_DOWNTIME
SCHEDULE_SERVICEGROUP_SVC_DOWNTIME
 
And, to delete a scheduled downtime, you use :
 
DEL_HOST_DOWNTIME
DEL_SVC_DOWNTIME
 
The permissions are the same as for any external command.
 
As these commands are undocumented, you will have to look in the 'cgi/cmd.c'
source file to find their arguments.
 

From: Sxan [mailto:sxanrr at yahoo.com] 

The docs mentioned something about 
a line like 

downtime_file=/usr/local/nagios/var/downtime.dat

Or will this file create itself from the Nagios program? 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050524/cb3cfc2b/attachment.html>
-------------- next part --------------
Ce message et ses pièces jointes (le "message") est destiné à l'usage    
exclusif de son destinataire.                                            
Si vous recevez ce message par erreur, merci d'en aviser immédiatement   
l'expéditeur  et de le détruire ensuite. Le présent message  pouvant  
être altéré à notre insu,  CALYON Corporate and Investment Bank                              
ne peut pas être engagé par son contenu. Tous droits réservés. 
          
This message and/or any  attachments (the "message") is intended for     
the sole use of its addressee.                                            
If you are not the addressee, please immediately notify the sender and    
then destroy the message.  As this message and/or any attachments may 
have been altered without our knowledge,  its content  is not legally 
binding on CALYON Corporate and Investment Bank. All rights reserved.                                                                


More information about the Users mailing list