Am 13.07.2016 um 18:36 schrieb Marcos Di Pietro:

Hi,

I’m using the API to schedule downtimes of a unknown duration.  The
scheduled downtime start time is set to now and the scheduled downtime
end time is set to a year from now.  When the downtime is done, I call
the API to update the downtime object’s end time to the current
datetime. However, when I look in the IDO database, the
icinga_downtimehistory table doesn’t reflect the updated end time and
the entry gets removed from the icinga_scheduleddowntime table. Is
there a way of updating the downtime history records thru the API? I
depend on this data being correct to generate SLA reports.


Interesting idea. But that's not gonna work as such object change
attributes won't trigger any other events (neither event stream nor DB
IDO). In your case you obviously want to manipulate a wrongly scheduled
downtime. Delete and re-create it - or fake it inside your database
backend as you've done with Icinga 1.x.

Kind regards,
Michael


-- 
Michael Friedrich, DI (FH)
Senior Developer

NETWAYS GmbH | Deutschherrnstr. 15-19 | D-90429 Nuernberg
Tel: +49 911 92885-0 | Fax: +49 911 92885-77
CEO: Julian Hein, Bernd Erk | AG Nuernberg HRB18461
http://www.netways.de | michael.friedr...@netways.de

** OSBConf 2016 - September - osbconf.org **
** OSMC 2016 - November - netways.de/osmc **
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to