| ||||||
| 2012/4/27-6/4 [Computer/SW/Languages/Misc, Computer/SW/Unix] UID:54372 Activity:nil |
4/27 I wrote a little shell script to collect iostat data:
#!/bin/bash
DATE=`date +%m%d`
DATADIR=/var/tmp/user
OUTPUTFILE=$DATADIR/$DATE.out
while true
do
date; /usr/bin/iostat -x 1 > $OUTPUTFILE
done
Is there a better way to do this? Open source tool perhaps?
\_ It's the easiest way. If you want to go fancy, Graphite is
pretty nice for app level stuff.
\_ Wow, this Graphite?
http://graphite.wikidot.com
Do you have it installed? |