[icinga-checkins] icinga.org: icinga-core/master: fix scheduled downtime notifications resent on restart/reload #584

git at icinga.org git at icinga.org
Fri Sep 24 16:05:29 CEST 2010


Module: icinga-core
Branch: master
Commit: 81eb1f32ac379212b688b788e0000048af61583f
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=81eb1f32ac379212b688b788e0000048af61583f

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Thu Sep 23 08:40:45 2010 +0200

fix scheduled downtime notifications resent on restart/reload #584

What happened here is, that a downtime is rescheduled after restart.
So it reads the status from the retention file, but it has no idea
if the downtime is already started or not. Because the flag
"is_in_effect" isn't stored to the status or retention data.

Added the flag to status and retention data.
Also to every function which is adding a downtime.

When icinga gets started then it will register and trigger a downtime
event soon after start, bailing also out on sending a notification if
downtime->is_in_effect is TRUE.

done by Ricardo.

fixes #584

---

 Changelog          |    1 +
 common/downtime.c  |   39 ++++++++++++++++++++++++---------------
 include/downtime.h |   14 +++++++-------
 xdata/xdddefault.c |    8 ++++----
 xdata/xdddefault.h |    4 ++--
 xdata/xrddefault.c |    9 +++++++--
 xdata/xsddefault.c |    9 +++++++--
 7 files changed, 52 insertions(+), 32 deletions(-)

Diff:   https://git.icinga.org/?p=icinga-core.git;a=commitdiff;h=81eb1f32ac379212b688b788e0000048af61583f




More information about the icinga-checkins mailing list