mirror of https://github.com/Icinga/icinga2.git
Fix missing next check update causing the scheduler to execute checks too often
Regression from #6217, only in git master. fixes #6421
This commit is contained in:
parent
601c54e44e
commit
ab9a32d67d
|
@ -438,6 +438,12 @@ void Checkable::ExecuteCheck()
|
|||
double scheduled_start = GetNextCheck();
|
||||
double before_check = Utility::GetTime();
|
||||
|
||||
/* This calls SetNextCheck() which updates the CheckerComponent's idle/pending
|
||||
* queues and ensures that checks are not fired multiple times. ProcessCheckResult()
|
||||
* is called too late. See #6421.
|
||||
*/
|
||||
UpdateNextCheck();
|
||||
|
||||
bool reachable = IsReachable();
|
||||
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue