Request NRPD 'Schedule SVC Downtime' return Schedule ID

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
santosltd
Posts: 18
Joined: Thu Feb 16, 2012 6:45 pm

Request NRPD 'Schedule SVC Downtime' return Schedule ID

Post by santosltd »

Currently the 'SCHEDULE_SVC_DOWNTIME' NRPD call does not return a 'schedule downtime ID' which is needed later on to remove that schedule downtime when created via a NRPD call - this is because the Schedule Downtime ID's are assigned in an asynchronous manner and are not known at the time the API receives the Schedule downtime request.

Given that in future Nagios will be assigning these in a synchronous manner - I would like to request a change in the API so the XML status return code has the assigned Schedule Service Downtime ID returned in the Status XML reply to the request.

This will allow scripts to remove scheduled downtimes without resorting to web-scraping the IDs from the Nagios XI GUI (yes someone has had to write a script to do this !! ).
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Request NRPD 'Schedule SVC Downtime' return Schedule ID

Post by slansing »

Can you note this in a feature request at:

tracker.nagios.com ?

Thank you!
Locked