mdstat: mismatch_cnt alarm added
lgz committed
Jun 17, 2018 at 22:15 UTC
e63ca796abf6e0183d101bf5c59bb81b5e6af9dc
1 file changed
+16
-7
conf.d/health.d/mdstat.conf
+16
-7
@@ -1,3 +1,13 @@
1
+template: mdstat_last_collected
2
+ on: md.disks
3
+ calc: $now - $last_collected_t
4
+ units: seconds ago
5
+ every: 10s
6
+ warn: $this > (($status >= $WARNING) ? ($update_every) : ( 5 * $update_every))
7
+ crit: $this > (($status == $CRITICAL) ? ($update_every) : (60 * $update_every))
8
+ info: number of seconds since the last successful data collection
9
+ to: sysadmin
10
+
11
template: mdstat_disks
12
on: md.disks
13
units: failed devices
@@ -7,12 +17,11 @@ template: mdstat_disks
17
info: Array is degraded!
18
to: sysadmin
19
10
-template: mdstat_last_collected
11
- on: md.disks
12
- calc: $now - $last_collected_t
13
- units: seconds ago
20
+template: mdstat_mismatch_cnt
21
+ on: md.mismatch_cnt
22
+ units: unsynchronized blocks
23
+ calc: $count
24
every: 10s
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
25
+ crit: $this > 0
26
+ info: Mismatch count!
27
to: sysadmin