Merge pull request #9185 from Icinga/bugfix/dont-trigger-fixed-downtime-as-flexible-212

Don't trigger a fixed downtime like a flexible one
This commit is contained in:
Julian Brost 2022-01-21 18:03:15 +01:00 committed by GitHub
commit 5140b2e3d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,7 +121,7 @@ void Downtime::Start(bool runtimeCreated)
* this downtime now *after* it has been added (important
* for DB IDO, etc.)
*/
if (!checkable->IsStateOK(checkable->GetStateRaw())) {
if (!GetFixed() && !checkable->IsStateOK(checkable->GetStateRaw())) {
Log(LogNotice, "Downtime")
<< "Checkable '" << checkable->GetName() << "' already in a NOT-OK state."
<< " Triggering downtime now.";