fix: change health_ok to status
This commit is contained in:
@@ -139,13 +139,13 @@ thresholds:
|
||||
# ----------------------------------------------------------------------------
|
||||
zfs_monitor:
|
||||
# Pool health check — built-in default; shown here for reference/override.
|
||||
# health_ok is 1 (ONLINE) or 0 (DEGRADED, SUSPENDED, FAULTED, UNAVAIL…).
|
||||
# status is 0 (ONLINE) or 1 (DEGRADED) or 2 (SUSPENDED, FAULTED, UNAVAIL…).
|
||||
# Use '*' to apply the same rule to every pool, or name a specific pool.
|
||||
pools:
|
||||
'*':
|
||||
health_ok:
|
||||
critical: 1 # Alert CRITICAL when pool is not ONLINE
|
||||
operator: "<"
|
||||
status:
|
||||
critical: 0 # Alert CRITICAL when pool is not ONLINE
|
||||
operator: ">"
|
||||
hysteresis: 0.0 # No hysteresis — a degraded pool is always critical
|
||||
display: "ZFS pool {pool_name} is {health}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user