Mdadm
It monitors the mdadm health and the array data.
Install prereqs
This script require: jq
sudo apt install jq
SNMP Extend
-
Download the script onto the 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.conffile, 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 restartLibreNMS discovers the application automatically, as described at the top of the page. If the discovery fails, do the steps under the
SNMP Extendheading at the top of the page.