fix: agree: zpool ONLINE=OK, DEGRADED=WARNING, all else is CRITICAL

This commit is contained in:
2026-05-08 17:18:41 -04:00
parent 12f7eb722b
commit b95f1a5bb7
4 changed files with 8 additions and 4 deletions
+2 -1
View File
@@ -144,7 +144,8 @@ thresholds:
pools:
'*':
status:
critical: 0 # Alert CRITICAL when pool is not ONLINE
warning: 1 # Alert WARNING when pool is DEGRADED
critical: 2 # Alert CRITICAL when pool is SUSPENDED/FAULTED/UNAVAIL
operator: ">"
hysteresis: 0.0 # No hysteresis — a degraded pool is always critical
display: "ZFS pool {pool_name} is {health}"
+2 -1
View File
@@ -109,7 +109,8 @@ THRESHOLD_DEFAULTS = {
'pools': {
'*': {
'status': {
'critical': 1, # Alert if pool health is not ONLINE
'warning': 1,
'critical': 2,
'operator': '>',
'hysteresis': 0.0,
'display': 'ZFS pool {pool_name} is {health}'
+2 -1
View File
@@ -681,7 +681,8 @@ class ThresholdChecker:
pools:
'*':
status:
critical: 0
warning: 1
critical: 2
operator: '>'
tank:
capacity: