mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 22:54:57 +02:00
Add host/service state sync to acknowledgement
This commit is contained in:
parent
916bfd20fb
commit
328adf1fc4
@ -685,8 +685,10 @@ Dictionary::Ptr RedisWriter::SerializeState(const Checkable::Ptr& checkable)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (AckComment != nullptr) {
|
||||||
attrs->Set("acknowledgement_comment_id", GetObjectIdentifier(AckComment));
|
attrs->Set("acknowledgement_comment_id", GetObjectIdentifier(AckComment));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
attrs->Set("in_downtime", checkable->IsInDowntime());
|
attrs->Set("in_downtime", checkable->IsInDowntime());
|
||||||
|
|
||||||
|
@ -338,6 +338,7 @@ void RedisWriter::SendEvent(const Dictionary::Ptr& event)
|
|||||||
if (c->GetEntryTime() > entry) {
|
if (c->GetEntryTime() > entry) {
|
||||||
entry = c->GetEntryTime();
|
entry = c->GetEntryTime();
|
||||||
AckComment = c;
|
AckComment = c;
|
||||||
|
StateChangeHandler(checkable);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user