Module collects adapter, physical drives and battery stats.
Requirements:
megacliprogramsudoprogramnetdatauser needs to be able to be able to sudo themegacliprogram without password
To grab stats it executes:
sudo -n megacli -LDPDInfo -aAllsudo -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: yesBattery stats disabled by default. To enable them modify megacli.conf.
do_battery: yes