Cosium / zabbix_zfs-on-linux

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

Item "Get iostats" in ZFS pool discovery fix #42

Open cmbcbe opened 1 year ago

cmbcbe commented 1 year ago

Hello,

the item "Zpool {#POOLNAME}: Get iostats" in ZFS discovery pool value should be changed from vfs.file.contents[/proc/spl/kstat/zfs/{#POOLNAME}/io] to vfs.file.contents[/proc/spl/kstat/zfs/{#POOLNAME}/iostats]

Regards

kobuki commented 1 year ago

This fix doesn't work in itself. I had to change the base item key to

vfs.file.regexp[/proc/spl/kstat/zfs/rpool/iostats,"^[0-9]"]

to only return the first line of the file. Then the dependent items work, but always show zero IO operations. Something must have changed in the format of the stats file. Using Zabbix 5.0.27.

tuxick commented 12 months ago

Yes, that first line is/became rather useless. zpool iostat is the way.