summaryrefslogtreecommitdiffstats
path: root/health
diff options
context:
space:
mode:
authorVladimir Kobal <vlad@prokk.net>2021-05-05 20:33:04 +0300
committerGitHub <noreply@github.com>2021-05-05 20:33:04 +0300
commit3f93df7aa3995d676a86f96cef061eb57ba14f50 (patch)
treeb99cefb3616416b6354c23ce4c0bbdf2ccc5457f /health
parent4a87b0f92e891aa52062c2f488df0c33cf2942e8 (diff)
Add a module for ZFS pool state (#11071)
Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>
Diffstat (limited to 'health')
-rw-r--r--health/health.d/zfs.conf28
1 files changed, 28 insertions, 0 deletions
diff --git a/health/health.d/zfs.conf b/health/health.d/zfs.conf
index 6ca0568f3c..d6f5fa2fe1 100644
--- a/health/health.d/zfs.conf
+++ b/health/health.d/zfs.conf
@@ -11,3 +11,31 @@ component: File system
delay: down 1h multiplier 1.5 max 2h
info: number of times ZFS had to limit the ARC growth in the last 10 minutes
to: sysadmin
+
+# ZFS pool state
+
+ template: zfs_pool_state_warn
+ on: zfspool.state
+ class: System
+component: File system
+ type: Errors
+ calc: $degraded
+ units: boolean
+ every: 10s
+ warn: $this > 0
+ delay: down 1m multiplier 1.5 max 1h
+ info: ZFS pool $family state is degraded
+ to: sysadmin
+
+ template: zfs_pool_state_crit
+ on: zfspool.state
+ class: System
+component: File system
+ type: Errors
+ calc: $faulted + $unavail
+ units: boolean
+ every: 10s
+ crit: $this > 0
+ delay: down 1m multiplier 1.5 max 1h
+ info: ZFS pool $family state is faulted or unavail
+ to: sysadmin