Automating downtime

Aaron Segura Aaron.Segura at cabelas.com
Tue Nov 28 22:58:05 CET 2006


If you're local to the nagios process, the file
.../var/nagiosdowntime.log (or .dat) contains the current list of
downtimes complete with IDs.  You could pretty easily parse that and do
a match against hostname/servicename to derive the ID you're looking
for.

 

________________________________

From: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Withers
John Z
Sent: Tuesday, November 28, 2006 2:54 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Automating downtime

 

I'm interested in automating host downtime.  The SCHEDULE_HOST_DOWNTIME
external command works very well, but the complementary command to
cancel a scheduled downtime (DEL_HOST_DOWNTIME) is difficult to use.  In
particular, it requires that the caller know the internal ID of the
downtime entry to delete.  Has anyone worked around this?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20061128/c152e39e/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
-------------- next part --------------
_______________________________________________
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