fix mdadm documentation (#14186)

This commit is contained in:
Peca Nesovanovic
2022-08-07 11:59:55 -05:00
committed by GitHub
parent 1d53679a64
commit 79a9967667
+22 -7
View File
@@ -849,26 +849,41 @@ Extend` heading top of page.
## Mdadm
This shell script checks mdadm health and array data
It allows you to checks mdadm health and array data
This script require: jq
### SNMP Extend
1. Download the script onto the desired host.
1. Install jq
```
wget https://raw.githubusercontent.com/librenms/librenms-agent/master/snmp/mdadm -O /etc/snmp/mdadm
sudo apt install jq
```
2. Make the script executable
2. Download the script onto the desired host.
```
chmod +x /etc/snmp/mdadm
sudo wget https://raw.githubusercontent.com/librenms/librenms-agent/master/snmp/mdadm -O /etc/snmp/mdadm
```
3. Edit your snmpd.conf file (usually /etc/snmp/snmpd.conf) and add:
3. Make the script executable
```
sudo chmod +x /etc/snmp/mdadm
```
4. Edit your snmpd.conf file (usually /etc/snmp/snmpd.conf) and add:
```
extend mdadm /etc/snmp/mdadm
```
4. Restart snmpd on your host
5. Verify it is working by running
```
sudo /etc/snmp/mdadm
```
6. 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