megacli: alarms added
lgz committed
Jul 7, 2018 at 12:37 UTC
1b2d2658ff73d392ad3923514327edd5763b1f73
2 files changed
+30
-1
conf.d/Makefile.am
+2
-1
@@ -52,8 +52,8 @@ dist_pythonconfig_DATA = \
52
python.d/isc_dhcpd.conf \
53
python.d/litespeed.conf \
54
python.d/logind.conf \
55
- python.d/megacli.conf \
55
python.d/mdstat.conf \
56
+ python.d/megacli.conf \
57
python.d/memcached.conf \
58
python.d/mongodb.conf \
59
python.d/mysql.conf \
@@ -111,6 +111,7 @@ dist_healthconfig_DATA = \
111
health.d/isc_dhcpd.conf \
112
health.d/lighttpd.conf \
113
health.d/mdstat.conf \
114
+ health.d/megacli.conf \
115
health.d/memcached.conf \
116
health.d/memory.conf \
117
health.d/mongodb.conf \
conf.d/health.d/megacli.conf
new
+28
@@ -0,0 +1,28 @@
1
+ alarm: adapter_state
2
+ on: megacli.adapter_degraded
3
+ units: is degraded
4
+ lookup: sum -10s
5
+ every: 10s
6
+ crit: $this > 0
7
+ info: adapter state
8
+ to: sysadmin
9
+
10
+ template: bbu_relative_charge
11
+ on: megacli.bbu_relative_charge
12
+ units: percent
13
+ lookup: average -10s
14
+ every: 10s
15
+ warn: $this <= (($status >= $WARNING) ? (85) : (80))
16
+ crit: $this <= (($status == $CRITICAL) ? (50) : (40))
17
+ info: BBU relative state of charge
18
+ to: sysadmin
19
+
20
+ template: bbu_cycle_count
21
+ on: megacli.bbu_cycle_count
22
+ units: cycle count
23
+ lookup: average -10s
24
+ every: 10s
25
+ warn: $this >= 100
26
+ crit: $this >= 500
27
+ info: BBU cycle count
28
+ to: sysadmin