fix: agree: zpool ONLINE=OK, DEGRADED=WARNING, all else is CRITICAL
This commit is contained in:
@@ -269,7 +269,8 @@ zfs_monitor:
|
|||||||
pools:
|
pools:
|
||||||
'*':
|
'*':
|
||||||
status:
|
status:
|
||||||
critical: 1
|
warning: 1
|
||||||
|
critical: 2
|
||||||
operator: ">"
|
operator: ">"
|
||||||
hysteresis: 0.0
|
hysteresis: 0.0
|
||||||
display: "ZFS pool {pool_name} is {health}"
|
display: "ZFS pool {pool_name} is {health}"
|
||||||
|
|||||||
@@ -144,7 +144,8 @@ thresholds:
|
|||||||
pools:
|
pools:
|
||||||
'*':
|
'*':
|
||||||
status:
|
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: ">"
|
operator: ">"
|
||||||
hysteresis: 0.0 # No hysteresis — a degraded pool is always critical
|
hysteresis: 0.0 # No hysteresis — a degraded pool is always critical
|
||||||
display: "ZFS pool {pool_name} is {health}"
|
display: "ZFS pool {pool_name} is {health}"
|
||||||
|
|||||||
@@ -109,7 +109,8 @@ THRESHOLD_DEFAULTS = {
|
|||||||
'pools': {
|
'pools': {
|
||||||
'*': {
|
'*': {
|
||||||
'status': {
|
'status': {
|
||||||
'critical': 1, # Alert if pool health is not ONLINE
|
'warning': 1,
|
||||||
|
'critical': 2,
|
||||||
'operator': '>',
|
'operator': '>',
|
||||||
'hysteresis': 0.0,
|
'hysteresis': 0.0,
|
||||||
'display': 'ZFS pool {pool_name} is {health}'
|
'display': 'ZFS pool {pool_name} is {health}'
|
||||||
|
|||||||
@@ -681,7 +681,8 @@ class ThresholdChecker:
|
|||||||
pools:
|
pools:
|
||||||
'*':
|
'*':
|
||||||
status:
|
status:
|
||||||
critical: 0
|
warning: 1
|
||||||
|
critical: 2
|
||||||
operator: '>'
|
operator: '>'
|
||||||
tank:
|
tank:
|
||||||
capacity:
|
capacity:
|
||||||
|
|||||||
Reference in New Issue
Block a user