summaryrefslogtreecommitdiffstats
path: root/conf.d
diff options
context:
space:
mode:
authorCosta Tsaousis <costa@tsaousis.gr>2018-07-08 04:57:25 +0300
committerGitHub <noreply@github.com>2018-07-08 04:57:25 +0300
commit8e8d74603e24dc800629b0621d33b1868e1deaaf (patch)
tree900179c337ca87eb762de45e3b88b71d3d16dbde /conf.d
parent30bbfc27442479744b49813261a573fd8c98b343 (diff)
parent81581660c72a0b4d0e9edcdcdbf920717200ab60 (diff)
Merge pull request #3930 from l2isbad/megacli
python megacli plugin
Diffstat (limited to 'conf.d')
-rw-r--r--conf.d/Makefile.am2
-rw-r--r--conf.d/health.d/megacli.conf48
-rw-r--r--conf.d/python.d/megacli.conf68
3 files changed, 118 insertions, 0 deletions
diff --git a/conf.d/Makefile.am b/conf.d/Makefile.am
index 7bd3622f65..0026e3f130 100644
--- a/conf.d/Makefile.am
+++ b/conf.d/Makefile.am
@@ -53,6 +53,7 @@ dist_pythonconfig_DATA = \
python.d/litespeed.conf \
python.d/logind.conf \
python.d/mdstat.conf \
+ python.d/megacli.conf \
python.d/memcached.conf \
python.d/mongodb.conf \
python.d/mysql.conf \
@@ -111,6 +112,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..1881a7be14
--- /dev/null
+++ b/conf.d/health.d/megacli.conf
@@ -0,0 +1,48 @@
+ 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
+
+ alarm: pd_media_errors
+ on: megacli.pd_media_error
+ units: media errors
+ lookup: sum -10s
+ every: 10s
+ warn: $this > 0
+ delay: down 1m multiplier 2 max 10m
+ info: physical drive media errors
+ to: sysadmin
+
+ alarm: pd_predictive_failures
+ on: megacli.pd_predictive_failure
+ units: predictive failures
+ lookup: sum -10s
+ every: 10s
+ warn: $this > 0
+ delay: down 1m multiplier 2 max 10m
+ info: physical drive predictive failures
+ to: sysadmin
diff --git a/conf.d/python.d/megacli.conf b/conf.d/python.d/megacli.conf
new file mode 100644
index 0000000000..d84078ecb1
--- /dev/null
+++ b/conf.d/python.d/megacli.conf
@@ -0,0 +1,68 @@
+# netdata python.d.plugin configuration for megacli
+#
+# This file is in YaML format. Generally the format is:
+#
+# name: value
+#
+
+# ----------------------------------------------------------------------
+# Global Variables
+# These variables set the defaults for all JOBs, however each JOB
+# may define its own, overriding the defaults.
+
+# update_every sets the default data collection frequency.
+# If unset, the python.d.plugin default is used.
+# update_every: 1
+
+# priority controls the order of charts at the netdata dashboard.
+# Lower numbers move the charts towards the top of the page.
+# If unset, the default for python.d.plugin is used.
+# priority: 60000
+
+# retries sets the number of retries to be made in case of failures.
+# If unset, the default for python.d.plugin is used.
+# Attempts to restore the service are made once every update_every
+# and only if the module has collected values in the past.
+# retries: 60
+
+# autodetection_retry sets the job re-check interval in seconds.
+# The job is not deleted if check fails.
+# Attempts to start the job are made once every autodetection_retry.
+# This feature is disabled by default.
+# autodetection_retry: 0
+
+# ----------------------------------------------------------------------
+# JOBS (data collection sources)
+#
+# The default JOBS share the same *name*. JOBS with the same name
+# are mutually exclusive. Only one of them will be allowed running at
+# any time. This allows autodetection to try several alternatives and
+# pick the one that works.
+#
+# Any number of jobs is supported.
+#
+# All python.d.plugin JOBS (for all its modules) support a set of
+# predefined parameters. These are:
+#
+# job_name:
+# name: myname # the JOB's name as it will appear at the
+# # dashboard (by default is the job_name)
+# # JOBs sharing a name are mutually exclusive
+# update_every: 1 # the JOB's data collection frequency
+# priority: 60000 # the JOB's order on the dashboard
+# retries: 60 # the JOB's number of restoration attempts
+# autodetection_retry: 0 # the JOB's re-check interval in seconds
+#
+# Additionally to the above, megacli also supports the following:
+#
+# do_battery: yes/no # default is no. Battery stats (adds additional call to megacli `megacli -AdpBbuCmd -a0`).
+#
+# ----------------------------------------------------------------------
+
+# IMPORTANT
+# The netdata user needs to be able to be able to sudo the megacli program without password:
+# netdata ALL=(root) NOPASSWD: /path/to/megacli
+
+
+# uncomment the line below to collect battery statistics
+# do_battery: yes