Mdadm
It allows you to checks mdadm health and array data
Install prereqs
This script require: jq
sudo apt install jq
SNMP Extend
-
Download the script onto the desired host.
sudo wget https://raw.githubusercontent.com/librenms/librenms-agent/master/snmp/mdadm -O /etc/snmp/mdadm
-
Make the script executable
sudo chmod +x /etc/snmp/mdadm
-
Edit your snmpd.conf file (usually
/etc/snmp/snmpd.conf
) and add:extend mdadm /etc/snmp/mdadm
-
Verify it is working by running
sudo /etc/snmp/mdadm
-
Restart snmpd on your host
sudo service snmpd restart
The application should be auto-discovered as described at the top of the page. If it is not, please follow the steps set out under
SNMP Extend
heading top of page.