summaryrefslogtreecommitdiffstats
path: root/src/health/health.d/zfs.conf
diff options
context:
space:
mode:
Diffstat (limited to 'src/health/health.d/zfs.conf')
-rw-r--r--src/health/health.d/zfs.conf19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/health/health.d/zfs.conf b/src/health/health.d/zfs.conf
index 9c1f0018b..5c8065aa3 100644
--- a/src/health/health.d/zfs.conf
+++ b/src/health/health.d/zfs.conf
@@ -67,7 +67,7 @@ component: File system
type: System
component: File system
calc: $degraded
- units: boolean
+ units: status
every: 10s
warn: $this > 0
delay: down 1m multiplier 1.5 max 1h
@@ -81,10 +81,25 @@ component: File system
type: System
component: File system
calc: $faulted + $unavail
- units: boolean
+ units: status
every: 10s
crit: $this > 0
delay: down 1m multiplier 1.5 max 1h
summary: Critical ZFS pool ${label:pool} state
info: ZFS pool ${label:pool} state is faulted or unavail
to: sysadmin
+
+
+ template: zfs_vdev_health_state
+ on: zfspool.vdev_health_state
+ class: Errors
+ type: System
+component: File system
+ calc: $degraded + $faulted
+ units: status
+ every: 10s
+ warn: $this > 0
+ delay: down 1m multiplier 1.5 max 1h
+ summary: ZFS vdev ${label:vdev} pool ${label:pool} state
+ info: ZFS vdev ${label:vdev} state is faulted or degraded
+ to: sysadmin