mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
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 scheduled_start = GetNextCheck();
|
||||||
double before_check = Utility::GetTime();
|
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();
|
bool reachable = IsReachable();
|
||||||
|
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user