mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Ignore check results if we have a local result that's newer.
This commit is contained in:
parent
cbc53db5c1
commit
b887b558bc
@ -472,6 +472,9 @@ void Service::ProcessCheckResult(const Dictionary::Ptr& cr, const String& author
|
||||
long old_attempt = GetCurrentCheckAttempt();
|
||||
bool recovery;
|
||||
|
||||
if (old_cr && cr->Get("execution_start") < old_cr->Get("execution_start"))
|
||||
return;
|
||||
|
||||
/* The ExecuteCheck function already sets the old state, but we need to do it again
|
||||
* in case this was a passive check result. */
|
||||
SetLastState(old_state);
|
||||
|
Loading…
x
Reference in New Issue
Block a user