I do this, currently. It goes something like this, on linux. Run from cron, once a minute:
#!/bin/sh CLIENT="/usr/bin/gmetric" /usr/bin/iostat -x 4 2 cciss/c0d0 | grep -v ^$ | tail -4 > /tmp/disk-io.tmp UTIL=`grep cciss /tmp/disk-io.tmp | awk '{print $14}'` WRITE=`tail -1 /tmp/disk-io.tmp | awk '{print $9}'` READ=`tail -1 /tmp/disk-io.tmp | awk '{print $8}'` IOWAIT=`head -2 /tmp/disk-io.tmp | tail -1 | awk '{print $4}'` $CLIENT -t uint16 -n diskio-util -v $UTIL -u '%' $CLIENT -t uint16 -n diskio-write -v $WRITE -u 'wkB/s' $CLIENT -t uint16 -n diskio-read -v $READ -u 'rkB/s' $CLIENT -t uint16 -n diskio-iowait -v $IOWAIT -u '%' and that's all there is to it. replace cciss/c0d0 with the drive device of your choice. -john ----- Original Message ---- From: Martin Knoblauch <[EMAIL PROTECTED]> To: [EMAIL PROTECTED]; ganglia-general@lists.sourceforge.net Sent: Mon Jan 30 10:35:02 2006 Subject: Re: [Ganglia-general] Disk I/O in the Linux gmond Richard, for Solaris we have {b,l,ph}{read,write} metrics, that would cover disk-io (not latency). Nothing has been done for the other platforms in the ganglia monitor-core. Have you looked at the repository page? http://ganglia.sourceforge.net/gmetric/ Entry #39 may be interesting for you. Martin --- [EMAIL PROTECTED] wrote: > Has anyone extended the Linux gmond to include disk I/O > or disk latency stats? > > kind regards, > richard grevis > > ------------------------------------------------------ Martin Knoblauch email: k n o b i AT knobisoft DOT de www: http://www.knobisoft.de ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Ganglia-general mailing list Ganglia-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ganglia-general