mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Downtime#Start(): trigger fixed downtimes immediately instead of waiting for the timer
... not to cause e.g. notifications if a problem occurs between the downtime start time and the timer routine.
This commit is contained in:
parent
a038f513aa
commit
4216ed018c
@ -127,6 +127,14 @@ void Downtime::Start(bool runtimeCreated)
|
||||
<< " Triggering downtime now.";
|
||||
TriggerDowntime();
|
||||
}
|
||||
|
||||
if (GetFixed() && CanBeTriggered()) {
|
||||
/* Send notifications. */
|
||||
OnDowntimeStarted(this);
|
||||
|
||||
/* Trigger fixed downtime immediately. */
|
||||
TriggerDowntime();
|
||||
}
|
||||
}
|
||||
|
||||
void Downtime::Stop(bool runtimeRemoved)
|
||||
|
Loading…
x
Reference in New Issue
Block a user