Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

closed as off-topic by Tom O'Connor Aug 9 '13 at 19:11

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions must demonstrate a minimal understanding of the problem being solved. Try including attempted solutions, why they didn't work, and the expected results. See How can I ask better questions on Server Fault? for further guidance." – Tom O'Connor
If this question can be reworded to fit the rules in the help center, please edit the 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

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.

share|improve this answer
Consider yourself contacted. Please post your solution for the sake of future google searches. – Ben Nov 29 '11 at 22:47
Juraj, I am unable to find any other way how to contact you. Can you share your "translator" for the ZFS IO zabbix? Thanks in advance. Gabriel – user134606 Sep 4 '12 at 9:51
Was anyone able to track down the translator? I am also looking for other templates for ZFS monitoring with Zabbix. – user185074 Aug 9 '13 at 18:47
They are using a kind of translator here: – Jesper Grann Laursen Mar 1 at 11:06

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