feature: Added ZFS support for FreeBSD (#7938)

* add the ZFS graphs

* And now the ZFS non-graph stuff.

Still need to move it over to using JSON.

* Now uses JSON.

* use stripslashes as SNMPD loves to slash up the JSON

* Document ZFS.

* very minor formatting cleanup

* minor formatting cleanup and remove a bit of code from when I was mucking around debugging it all
This commit is contained in:
VVelox
2017-12-30 05:42:51 -06:00
committed by Neil Lathwood
parent 0e13e77c5f
commit eaf70e96f6
18 changed files with 858 additions and 1 deletions

View File

@@ -42,6 +42,7 @@ Different applications support a variety of ways to collect data: by direct conn
1. [Unbound](#unbound) - Agent
1. [UPS-nut](#ups-nut) - SNMP extend
1. [UPS-apcups](#ups-apcups) - SNMP extend
1. [ZFS](#zfs) - SNMP extend
### Apache
Either use SNMP extend or use the agent.
@@ -953,3 +954,22 @@ extend sdfsinfo /etc/snmp/sdfsinfo
4. Restart snmpd on your host
5. On the device page in Librenms, edit your host and check the `SDFS info` under the Applications tab or wait for it to be auto-discovered.
### ZFS
###### SNMP Extend
1. Copy the perl script to the desired host (the host must be added to LibreNMS devices)
```
wget https://github.com/librenms/librenms-agent/raw/master/snmp/zfs-freebsd -O /etc/snmp/zfs-freebsd
```
2. Make the script executable (chmod +x /etc/snmp/zfs-freebsd)
3. Edit your snmpd.conf file (usually /etc/snmp/snmpd.conf) and add:
```
extend zfs /etc/snmp/zfs-freebsd
```
4. Restart snmpd on your host
At this time, only FreeBSD is support. Linux support is eventually planned.