mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
IcingaDB: Send reachablity state updates for all children
This commit is contained in:
parent
772420a438
commit
c02b9d74a9
@ -96,8 +96,11 @@ void IcingaDB::ConfigStaticInitialize()
|
||||
AcknowledgementClearedHandler(checkable, removedBy, changeTime);
|
||||
});
|
||||
|
||||
Checkable::OnReachabilityChanged.connect([](const Checkable::Ptr&, const CheckResult::Ptr&, std::set<Checkable::Ptr> children, const MessageOrigin::Ptr&) {
|
||||
IcingaDB::ReachabilityChangeHandler(children);
|
||||
Checkable::OnReachabilityChanged.connect([](const Checkable::Ptr& parent, const CheckResult::Ptr&, std::set<Checkable::Ptr>, const MessageOrigin::Ptr&) {
|
||||
// Icinga DB Web needs to know about the reachability of all children, not just the direct ones.
|
||||
// These might get updated with their next check result anyway, but we can't rely on that, since
|
||||
// they might not be actively checked or have a very high check interval.
|
||||
IcingaDB::ReachabilityChangeHandler(parent->GetAllChildren());
|
||||
});
|
||||
|
||||
/* triggered on create, update and delete objects */
|
||||
|
Loading…
x
Reference in New Issue
Block a user