@cryptotaxi247 / netdata-1 / commits / 73cc51195

mdstat alarm configuration added

lgz committed Jan 1, 2017 at 22:29 UTC 73cc51195ce1c6644334c826358591d5f6582088
1 file changed +18
conf.d/health.d/mdstat.conf new
+18
@@ -0,0 +1,18 @@
1 +template: mdstat_disks
2 + on: md.disks
3 + units: active devices
4 + every: 1s
5 + calc: $total - $inuse
6 + crit: $this > 0
7 + info: Array is degraded!
8 + to: sysadmin
9 +
10 +template: mdstat_last_collected
11 + on: md.disks
12 + calc: $now - $last_collected_t
13 + units: seconds ago
14 + every: 1s
15 + warn: $this > (($status >= $WARNING) ? ($update_every) : ( 5 * $update_every))
16 + crit: $this > (($status == $CRITICAL) ? ($update_every) : (60 * $update_every))
17 + info: number of seconds since the last successful data collection
18 + to: sysadmin