summaryrefslogtreecommitdiff
path: root/internal/state.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/state.go')
-rw-r--r--internal/state.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/state.go b/internal/state.go
index e33d5cb..940cbec 100644
--- a/internal/state.go
+++ b/internal/state.go
@@ -288,8 +288,8 @@ func (s state) reportBy(sb *strings.Builder, showStatusChange, isStaleReport boo
if !filter(cs) {
continue
}
- if !isStaleReport && cs.Epoch < s.staleEpoch {
- continue // skip stale checks in non-stale report
+ if !isStaleReport && cs.Epoch < s.staleEpoch && cs.Status != nagiosOk {
+ continue // skip stale non-OK checks in non-stale report
}
if cs.Status != nagiosOk && isCheckSuppressed(name, conf) {
continue // skip suppressed checks (OK checks are never suppressed)