mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
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();
|
||||
bool recovery = false;
|
||||
|
||||
/* Ignore check results older than the current one. */
|
||||
if (old_cr && cr->GetExecutionStart() < old_cr->GetExecutionStart())
|
||||
/* 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() && old_cr->GetExecutionStart() < now)
|
||||
return;
|
||||
|
||||
/* The ExecuteCheck function already sets the old state, but we need to do it again
|
||||
|
Loading…
x
Reference in New Issue
Block a user