]> granicus.if.org Git - icinga2/commit
Put running downtimes in effect
authorEdgar Fuß <ef@math.uni-bonn.de>
Thu, 18 Oct 2018 16:42:21 +0000 (18:42 +0200)
committerMichael Friedrich <michael.friedrich@icinga.com>
Wed, 5 Dec 2018 15:00:28 +0000 (16:00 +0100)
commit3b4dc854cffc55e53be0e593fad4d1f0ec9e0b74
tree4c598352b98e103cc05eb2cdf8651d34c7517c67
parente76ec0d42e706f25675748a10c660ca52f8c5405
Put running downtimes in effect

If Icinga2 was restarted with a newly configured downtime that should
be in effect at the time of restart, the should-be-running segment of
it was not put into effect.

Add new LegacyTimePeriod::FindRunningSegment() and
ScheduledDowntime::FindRunningSegment() functions, call the latter in
ScheduledDowntime::CreateNextDowntime() before trying the old
ScheduledDowntime::FindNextSegment().
lib/icinga/legacytimeperiod.cpp
lib/icinga/legacytimeperiod.hpp
lib/icinga/scheduleddowntime.cpp
lib/icinga/scheduleddowntime.hpp