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.

link|improve this question
Operating system you're using is??? – Chris S Aug 22 '11 at 17:25
Solaris 10, update 9 on x86-64. – Juraj Ziegler Aug 23 '11 at 12:35
feedback

1 Answer

OK. In the end, I wrote a "translator" from the human-readable output of "zpool iostat" into absolute numbers.

If anyone wants it, contact me.

link|improve this answer
Consider yourself contacted. Please post your solution for the sake of future google searches. – Ben Nov 29 '11 at 22:47
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.