diff options
author | lgz <ilyamaschenko@gmail.com> | 2018-07-06 15:06:19 +0900 |
---|---|---|
committer | lgz <ilyamaschenko@gmail.com> | 2018-07-06 15:06:19 +0900 |
commit | e1d2c6de031f841fb4586436f50dfc975a127c72 (patch) | |
tree | 7714ea2024e8aa4d4aded68010f687f1d1adebb4 /conf.d | |
parent | 82383e6f6cc697d5ffe539d803a183803ef6228a (diff) |
megacli: add configuration file
Diffstat (limited to 'conf.d')
-rw-r--r-- | conf.d/Makefile.am | 1 | ||||
-rw-r--r-- | conf.d/python.d/megacli.conf | 68 |
2 files changed, 69 insertions, 0 deletions
diff --git a/conf.d/Makefile.am b/conf.d/Makefile.am index 72807b6804..4cf0cca027 100644 --- a/conf.d/Makefile.am +++ b/conf.d/Makefile.am @@ -52,6 +52,7 @@ 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/memcached.conf \ python.d/mongodb.conf \ 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 |