mirror of https://github.com/Icinga/icinga2.git
Fix checkresults from the future breaking checks
This commit is contained in:
parent
d2755351d3
commit
c97f3c80f5
|
@ -170,8 +170,8 @@ void Checkable::ProcessCheckResult(const CheckResult::Ptr& cr, const MessageOrig
|
||||||
long old_attempt = GetCheckAttempt();
|
long old_attempt = GetCheckAttempt();
|
||||||
bool recovery = false;
|
bool recovery = false;
|
||||||
|
|
||||||
/* Ignore check results older than the current one. */
|
/* Ignore check results older than the current one, except if the previous check result is from the future. */
|
||||||
if (old_cr && cr->GetExecutionStart() < old_cr->GetExecutionStart())
|
if (old_cr && cr->GetExecutionStart() < old_cr->GetExecutionStart() && old_cr->GetExecutionStart() < now)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* The ExecuteCheck function already sets the old state, but we need to do it again
|
/* The ExecuteCheck function already sets the old state, but we need to do it again
|
||||||
|
|
Loading…
Reference in New Issue