diff --git a/lib/icinga/downtime.cpp b/lib/icinga/downtime.cpp index 9d00d0ace..2178953f3 100644 --- a/lib/icinga/downtime.cpp +++ b/lib/icinga/downtime.cpp @@ -133,7 +133,8 @@ void Downtime::Start(bool runtimeCreated) Log(LogNotice, "Downtime") << "Checkable '" << checkable->GetName() << "' already in a NOT-OK state." << " Triggering downtime now."; - TriggerDowntime(checkable->GetLastStateChange()); + + TriggerDowntime(std::fmax(std::fmax(GetStartTime(), GetEntryTime()), checkable->GetLastStateChange())); } if (GetFixed() && CanBeTriggered()) {