Cosium / zabbix_zfs-on-linux

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

FreeNAS #18

Open ghost opened 3 years ago

ghost commented 3 years ago

Hello,

Nice plugin but unfortunately does not work on FreeNAS, next to the dataset discovery almost everything else is broken.

cat: /proc/spl/kmem/slab: No such file or directory
arithmetic expression: expecting primary: "  "
cat: /sys/module/zfs/parameters/: No such file or directory
awk: can't open file /proc/spl/kstat/zfs/arcstats
 source line number 1
zfs.vdev.error_counter.cksum                  [t|

in

CKSUM
0
0

errors

in

CKSUM
0
0

errors]

Unfortunately there is only 1 other FreeNAS zabbix template and it does not even contain anything related to ZFS just useless stuff like CPU usage/jumps etc.

Here is some research on my own. On Freenas as Zabbix user you will need the sudo, for example without that zfs.vdev.discovery would only return 2 results.

Any help is welcome.

AceSlash commented 3 years ago

That's expected because FreeNAS is based on FreeBSD. While I did support for a time FreeBSD alongside Linux (on share.zabbix.com), I no longer work in an environment with any BSD, only Linux machines.

That's why this repository is aimed at Linux, but I can merge patches if they don't break the Linux side of things.

Typically, you'll have to create an other userparameter file that pulls the BSD items instead of looking at the Linux ones.

marcin-gryszkalis commented 1 year ago

FreeBSD fork of this template is here: https://github.com/francoricci/zabbix_zfs-on-freebsd (not tested yet, will do soon)