FYI, I found the following article helpful in setting up monitoring for my
home setup:
http://www.markround.com/archives/48-Linux-iostat-monitoring-with-Cacti.html

The article above is written in the context of setting up monitoring via
Cacti, but that's simply using rrdtool on the backend and its the same
general idea.  Basically:
# Setup a cronjob to runs every 5 minutes that runs "iostat -dx 30 2" to
gather I/O stats for 30 seconds.  You could increase the poll-time if you
wanted a more accurate snapshot, but getting statistics for a given
30-second block at a time seemed granular enough for my needs.
# Parse the results and feed into rrdtool. Since I'm doing remote
monitoring, I used the perl script from the above article to create an
net-snmp extension that would return the parsed results, so that Cacti can
query the stats over SNMP.

This gives the I/O stats on a per drive basis (rather than overall pool
stats), but you can adapt the idea to whatever you need.

-Tony

On Tue, Jun 28, 2011 at 10:08 AM, Matt Harrison <
iwasinnamuk...@genestate.com> wrote:

> Hi list,
>
> I want to monitor the read and write ops/bandwidth for a couple of pools
> and I'm not quite sure how to proceed. I'm using rrdtool so I either want an
> accumulated counter or a gauge.
>
> According to the ZFS admin guide, running zpool iostat without any
> parameters should show the activity since boot. On my system (OSOL snv_133)
> it's only showing ops in the single digits for a system with a months uptime
> and many GB of transfers.
>
> So, is there a way to get this output correctly, or is there a better way
> to do this?
>
> Thanks
> ______________________________**_________________
> zfs-discuss mailing list
> zfs-discuss@opensolaris.org
> http://mail.opensolaris.org/**mailman/listinfo/zfs-discuss<http://mail.opensolaris.org/mailman/listinfo/zfs-discuss>
>
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to