From: Gunnar Beutner Date: Fri, 22 Jun 2012 06:30:36 +0000 (+0200) Subject: Re-assign services from dead endoints. X-Git-Tag: v0.0.1~377 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f585dc1b29d6baf9794802dff7d43c9b3131f19a;p=icinga2 Re-assign services from dead endoints. --- diff --git a/components/delegation/delegationcomponent.cpp b/components/delegation/delegationcomponent.cpp index 3a747025f..4697b456d 100644 --- a/components/delegation/delegationcomponent.cpp +++ b/components/delegation/delegationcomponent.cpp @@ -202,7 +202,8 @@ void DelegationComponent::DelegationTimerHandler(void) /* don't re-assign service if the checker is still valid * and doesn't have too many services */ - if (oldEndpoint && find(candidates.begin(), candidates.end(), oldEndpoint) != candidates.end() && + if (oldEndpoint && oldEndpoint->IsConnected() && + find(candidates.begin(), candidates.end(), oldEndpoint) != candidates.end() && histogram[oldEndpoint] <= avg_services + overflow_tolerance) continue;