mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 06:34:42 +02:00
Merge pull request #5245 from Icinga/fix/downtime-host-trigger
Fix that host downtimes might be triggered even if their state is Up
This commit is contained in:
commit
ed33a269b3
@ -134,7 +134,7 @@ void Downtime::Start(bool runtimeCreated)
|
|||||||
* this downtime now *after* it has been added (important
|
* this downtime now *after* it has been added (important
|
||||||
* for DB IDO, etc.)
|
* for DB IDO, etc.)
|
||||||
*/
|
*/
|
||||||
if (checkable->GetStateRaw() != ServiceOK) {
|
if (!checkable->IsStateOK(checkable->GetStateRaw())) {
|
||||||
Log(LogNotice, "Downtime")
|
Log(LogNotice, "Downtime")
|
||||||
<< "Checkable '" << checkable->GetName() << "' already in a NOT-OK state."
|
<< "Checkable '" << checkable->GetName() << "' already in a NOT-OK state."
|
||||||
<< " Triggering downtime now.";
|
<< " Triggering downtime now.";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user