ZFS
SNMP Extend
1: Install the depends.
apt-get install -y libjson-perl libmime-base64-perl libfile-slurp-perl
pkg install p5-JSON p5-MIME-Base64 p5-File-Slurp
cpanm JSON MIME::Base64 File::Slurp
2: Fetch the script in question and make it executable.
```bash
wget https://github.com/librenms/librenms-agent/raw/master/snmp/zfs -O /etc/snmp/zfs
chmod +x /etc/snmp/zfs
```
3: Add the following to /etc/snmp/snmpd.conf
and restart snmpd. If -s
, passed as a arg, status is returned for display.
```bash
extend zfs /etc/snmp/zfs -b
```