Re: [Nagios-users] Automating downtime

2006-11-28 Thread Aaron Segura
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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Withers
John Z
Sent: Tuesday, November 28, 2006 2:54 PM
To: nagios-users@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?

-
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___
Nagios-users mailing list
Nagios-users@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

[Nagios-users] Automating downtime

2006-11-28 Thread Withers John Z
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?
-
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___
Nagios-users mailing list
Nagios-users@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