mirror of https://github.com/Icinga/icinga2.git
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());
|
||||
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++;
|
||||
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue