Skip to content

Mdadm

It monitors the mdadm health and the array data.

Install prereqs

This script require: jq

sudo apt install jq

SNMP Extend

  1. Download the script onto the host.

    sudo wget https://raw.githubusercontent.com/librenms/librenms-agent/master/snmp/mdadm -O /etc/snmp/mdadm
    
  2. Make the script executable.

    sudo chmod +x /etc/snmp/mdadm
    
  3. Edit your snmpd.conf file, usually /etc/snmp/snmpd.conf, and add:

    extend mdadm /etc/snmp/mdadm
    
  4. Verify it is working by running

    sudo /etc/snmp/mdadm
    
  5. Restart snmpd on your host.

    sudo service snmpd restart
    

    LibreNMS discovers the application automatically, as described at the top of the page. If the discovery fails, do the steps under the SNMP Extend heading at the top of the page.