I need to monitor per-zpool IO stats (number of reads, number of writes, size of reads, size of writes) with Zabbix. Is there a script for that?
kstat provides only agregate data (all zpools summed together) -- unix:0:vopstats_zfs:nread, unix:0:vopstats_zfs:nwrite, unix:0:vopstats_zfs:read_bytes, unix:0:vopstats_zfs:write_bytes.
zpool iostat does not have a switch to turn the "human-readable" values (K, M suffixes) into absolute values.
zpool iostat uses a ioctl to get the data from kernel. That looks like a "not-really-supported" interface to me.
Right now the best way seems to be to write a "translator" for the "zpool iostat" output, but I hope there's a better way and it has been done already.