mirror of https://github.com/Icinga/icinga2.git
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("in_downtime", checkable->IsInDowntime());
|
||||
|
||||
|
|
|
@ -338,6 +338,7 @@ void RedisWriter::SendEvent(const Dictionary::Ptr& event)
|
|||
if (c->GetEntryTime() > entry) {
|
||||
entry = c->GetEntryTime();
|
||||
AckComment = c;
|
||||
StateChangeHandler(checkable);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue