Cosium / zabbix_zfs-on-linux

zabbix template and user parameters to monitor zfs on linux
MIT License
76 stars 50 forks source link

Started work for FreeBSD ZFS monitoring #12

Closed stumbaumr closed 4 years ago

stumbaumr commented 4 years ago

Hi, as I have some FreeBSD based systems with ZFS in use as well (OPNsense and XigmaNAS) I would love to use this monitoring template there as well.

For the discovery to get to work I had to adjust some of the sed and grep commands. I ran the adjusted commands on Linux and FreeBSD and they produce valid results on both operating systems.

The missing newline after the first line does not seem to matter to Zabbix.

All three discoveries work.

The things still missing on FreeBSD are the parameters and the arc stats. No idea yet on how to get there yet, but I am already happy with the items I get now into Zabbix so far.

AceSlash commented 4 years ago

Hello @stumbaumr , thank you for your PR!

Funnily enough, this template was originally working on FreeBSD as well, from this version: https://share.zabbix.com/operating-systems/freebsd/zfs but as time did pass, I didn't have any more FreeBSD server to test it so it drifted toward Linux only.

I'm glad that you did find expression that works with both GNU sed/grep and the BSD ones :)

I'll gladly merge any more work that would make this template fully compatible with FreeBSD again (may have to change the name of the github repo though.