![]() |
6 years ago | |
---|---|---|
.. | ||
Makefile.inc | 6 years ago | |
README.md | 6 years ago | |
megacli.chart.py | 6 years ago | |
megacli.conf | 6 years ago |
Module collects adapter, physical drives and battery stats.
Requirements:
megacli
programsudo
programnetdata
user needs to be able to be able to sudo the megacli
program without passwordTo grab stats it executes:
sudo -n megacli -LDPDInfo -aAll
sudo -n megacli -AdpBbuCmd -a0
It produces:
Adapter State
Physical Drives Media Errors
Physical Drives Predictive Failures
Battery Relative State of Charge
Battery Cycle Count
This module uses megacli
which can only be executed by root. It uses
sudo
and assumes that it is configured such that the netdata
user can
execute megacli
as root without password.
Add to sudoers
:
netdata ALL=(root) NOPASSWD: /path/to/megacli
megacli is disabled by default. Should be explicitly enabled in python.d.conf
.
megacli: yes
Battery stats disabled by default. To enable them modify megacli.conf
.
do_battery: yes