SCHEDULE_HOST_DOWNTIME and DEL_HOST_DOWNTIME

Lori Adams ladams at cloudmark.com
Tue Jan 24 18:48:47 CET 2006


I actually do all of this kind of work by looking at the GUI.  Meaning,
I have the script get the appropriate page and find the downtime id.

 

This information may be in the status.log.  I also think there is a
downtime.log.  Check in there.  You'd have to parse the file.

 

-Lori

 

 

 

________________________________

From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Bruce
Pennypacker
Sent: Monday, January 16, 2006 2:09 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] SCHEDULE_HOST_DOWNTIME and DEL_HOST_DOWNTIME

 

I would like to write a couple scripts to help automate maintainence
tasks for a site we're using Nagios to monitor.  I was hoping to be able
to write a couple of scripts that would make use of
SCHEDULE_HOST_DOWNTIME and DEL_HOST_DOWNTIME to do this.  In a nutshell,
I want to be able to run one command that schedules a fixed downtime for
an arbitrary length of time specified by the user.  This could schedule
downtime for anywhere from one host to all the hosts that Nagios
monitors. I was then hoping to be able to use DEL_HOST_DOWNTIME to clear
those downtimes when the maintence work was complete.  The problem I'm
having, however, is that DEL_HOST_DOWNTIME requires the downtime ID,
which I don't see any way of obtaining from outside Nagios (short of
looking it up in the GUI).   Is there a way I can clear a downtime entry
for a host without knowing the downtime ID (or alternately, some way of
looking up that ID via a remote command)?

Thanks,

-Bruce

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060124/9a347f8c/attachment.html>


More information about the Users mailing list