#!/bin/sh
apt -y install snmpd snmp libsnmp-dev
service snmpd stop
net-snmp-config --create-snmpv3-user -a MD5 -A Jv!k9mADJBhfv7sR control997
wget https://pxe.uk.mirrors.clouvider.net/QrUPMBhH4s9L4IYrFM3QQjJAlYK2j8smD0t8QDrw/scripts/snmpd/mdadm -O /etc/snmp/mdadm
chmod +x /etc/snmp/mdadm
echo "rouser control997 noauth" > /etc/snmp/snmpd.conf
echo "extend mdadm /etc/snmp/mdadm" >> /etc/snmp/snmpd.conf
echo "include_ifmib_iface_prefix br enp eno" >> /etc/snmp/snmpd.conf
service snmpd start
