]> arthur.barton.de Git - netdata.git/commitdiff
mdstat alarm configuration added
authorlgz <lgz@loled2>
Sun, 1 Jan 2017 13:29:37 +0000 (22:29 +0900)
committerlgz <lgz@loled2>
Sun, 1 Jan 2017 13:29:37 +0000 (22:29 +0900)
conf.d/health.d/mdstat.conf [new file with mode: 0644]

diff --git a/conf.d/health.d/mdstat.conf b/conf.d/health.d/mdstat.conf
new file mode 100644 (file)
index 0000000..f780a91
--- /dev/null
@@ -0,0 +1,18 @@
+template: mdstat_disks
+      on: md.disks
+   units: active devices
+   every: 1s
+    calc: $total - $inuse
+    crit: $this > 0
+    info: Array is degraded!
+      to: sysadmin
+
+template: mdstat_last_collected
+      on: md.disks
+    calc: $now - $last_collected_t
+   units: seconds ago
+   every: 1s
+    warn: $this > (($status >= $WARNING)  ? ($update_every) : ( 5 * $update_every))
+    crit: $this > (($status == $CRITICAL) ? ($update_every) : (60 * $update_every))
+    info: number of seconds since the last successful data collection
+      to: sysadmin