diff options
Diffstat (limited to 'internal/state.go')
| -rw-r--r-- | internal/state.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/state.go b/internal/state.go index d71c71c..516e63a 100644 --- a/internal/state.go +++ b/internal/state.go @@ -214,8 +214,9 @@ func (s state) reportUnhandled(sb *strings.Builder) (numCriticals, numWarnings, } func (s state) reportStaleAlerts(sb *strings.Builder) int { + // Only report stale alerts that are not OK, since stale OK alerts aren't concerning return s.reportBy(sb, false, true, func(cs checkState) bool { - return cs.Epoch < s.staleEpoch + return cs.Epoch < s.staleEpoch && cs.Status != nagiosOk }) } |
