summaryrefslogtreecommitdiffstats
path: root/conf.d
diff options
context:
space:
mode:
authorlgz <ilyamaschenko@gmail.com>2018-07-07 12:37:47 +0900
committerlgz <ilyamaschenko@gmail.com>2018-07-07 12:37:47 +0900
commit1b2d2658ff73d392ad3923514327edd5763b1f73 (patch)
tree1fa37fab18b1d2e0ba0e597548f6e2e0c081b427 /conf.d
parent7dba68d0e2d815e85102fdb76a2d87c126b28347 (diff)
megacli: alarms added
Diffstat (limited to 'conf.d')
-rw-r--r--conf.d/Makefile.am3
-rw-r--r--conf.d/health.d/megacli.conf28
2 files changed, 30 insertions, 1 deletions
diff --git a/conf.d/Makefile.am b/conf.d/Makefile.am
index 4cf0cca027..4e692266b7 100644
--- a/conf.d/Makefile.am
+++ b/conf.d/Makefile.am
@@ -52,8 +52,8 @@ dist_pythonconfig_DATA = \
python.d/isc_dhcpd.conf \
python.d/litespeed.conf \
python.d/logind.conf \
- python.d/megacli.conf \
python.d/mdstat.conf \
+ python.d/megacli.conf \
python.d/memcached.conf \
python.d/mongodb.conf \
python.d/mysql.conf \
@@ -111,6 +111,7 @@ dist_healthconfig_DATA = \
health.d/isc_dhcpd.conf \
health.d/lighttpd.conf \
health.d/mdstat.conf \
+ health.d/megacli.conf \
health.d/memcached.conf \
health.d/memory.conf \
health.d/mongodb.conf \
diff --git a/conf.d/health.d/megacli.conf b/conf.d/health.d/megacli.conf
new file mode 100644
index 0000000000..a2646b3e80
--- /dev/null
+++ b/conf.d/health.d/megacli.conf
@@ -0,0 +1,28 @@
+ alarm: adapter_state
+ on: megacli.adapter_degraded
+ units: is degraded
+ lookup: sum -10s
+ every: 10s
+ crit: $this > 0
+ info: adapter state
+ to: sysadmin
+
+ template: bbu_relative_charge
+ on: megacli.bbu_relative_charge
+ units: percent
+ lookup: average -10s
+ every: 10s
+ warn: $this <= (($status >= $WARNING) ? (85) : (80))
+ crit: $this <= (($status == $CRITICAL) ? (50) : (40))
+ info: BBU relative state of charge
+ to: sysadmin
+
+ template: bbu_cycle_count
+ on: megacli.bbu_cycle_count
+ units: cycle count
+ lookup: average -10s
+ every: 10s
+ warn: $this >= 100
+ crit: $this >= 500
+ info: BBU cycle count
+ to: sysadmin