Skip to content

Mdadm

It allows you to checks mdadm health and array data

Install prereqs

This script require: jq

sudo apt install jq

SNMP Extend

  1. Download the script onto the desired 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
    

    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.