mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 07:04:37 +02:00
Re-schedule checks when re-assigning them to a different checker.
This commit is contained in:
parent
b79f966b53
commit
2f98f56119
@ -158,6 +158,11 @@ void DelegationComponent::DelegationTimerHandler(void)
|
|||||||
service->SetChecker(candidate->GetName());
|
service->SetChecker(candidate->GetName());
|
||||||
histogram[candidate]++;
|
histogram[candidate]++;
|
||||||
|
|
||||||
|
/* reschedule the service; this avoids "check floods"
|
||||||
|
* when a lot of services are re-assigned that haven't
|
||||||
|
* been checked recently. */
|
||||||
|
service->UpdateNextCheck();
|
||||||
|
|
||||||
delegated++;
|
delegated++;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user