#!/bin/bash DIR=`dirname $0` if [ $# != 2 ]; then echo "You must specify the path to the chart.pl script and the Chart Directory libraries." exit 1 fi SCRIPT=$1 LIBRARIES=$2 export PERL5LIB=$LIBRARIES pushd $DIR > /dev/null $SCRIPT -s lines --title "01 disk read request merges" -x "Time (secs.)" -y "Read Requests Merged/sec" plot-files/sda.rrqm.plot plot-files/sda1.rrqm.plot plot-files/sda2.rrqm.plot plot-files/sdb.rrqm.plot $SCRIPT -s lines --title "03 disk write request merges" -x "Time (secs.)" -y "Write Requests Merged/sec" plot-files/sda.wrqm.plot plot-files/sda1.wrqm.plot plot-files/sda2.wrqm.plot plot-files/sdb.wrqm.plot $SCRIPT -s lines --title "05 disk read throughput" -x "Time (secs.)" -y "Read KBytes/sec" plot-files/sda.rkb.plot plot-files/sda1.rkb.plot plot-files/sda2.rkb.plot plot-files/sdb.rkb.plot $SCRIPT -s lines --title "07 disk write throughput" -x "Time (secs.)" -y "Write KBytes/sec" plot-files/sda.wkb.plot plot-files/sda1.wkb.plot plot-files/sda2.wkb.plot plot-files/sdb.wkb.plot $SCRIPT -s lines --title "09 disk request size averages" -x "Time (secs.)" -y "Average Request Size" plot-files/sda.avgrq-sz.plot plot-files/sda1.avgrq-sz.plot plot-files/sda2.avgrq-sz.plot plot-files/sdb.avgrq-sz.plot $SCRIPT -s lines --title "10 disk queue size averages" -x "Time (secs.)" -y "Average Queue Size" plot-files/sda.avgqu-sz.plot plot-files/sda1.avgqu-sz.plot plot-files/sda2.avgqu-sz.plot plot-files/sdb.avgqu-sz.plot $SCRIPT -s lines --title "12 disk wait time" -x "Time (secs.)" -y "Average Wait Time" plot-files/sda.await.plot plot-files/sda1.await.plot plot-files/sda2.await.plot plot-files/sdb.await.plot $SCRIPT -s lines --title "14 disk service time" -x "Time (secs.)" -y "Service Time" plot-files/sda.svctm.plot plot-files/sda1.svctm.plot plot-files/sda2.svctm.plot plot-files/sdb.svctm.plot $SCRIPT --y-range=0:105 -s lines --title "16 disk utilization" -x "Time (secs.)" -y "Utilization" plot-files/sda.util.plot plot-files/sda1.util.plot plot-files/sda2.util.plot plot-files/sdb.util.plot $SCRIPT -s lines --title "02 dm read request merges" -x "Time (secs.)" -y "Read Requests Merged/sec" plot-files/dm-0.rrqm.plot plot-files/dm-1.rrqm.plot $SCRIPT -s lines --title "04 dm write request merges" -x "Time (secs.)" -y "Write Requests Merged/sec" plot-files/dm-0.wrqm.plot plot-files/dm-1.wrqm.plot $SCRIPT -s lines --title "06 dm read throughput" -x "Time (secs.)" -y "Read KBytes/sec" plot-files/dm-0.rkb.plot plot-files/dm-1.rkb.plot $SCRIPT -s lines --title "08 dm write throughput" -x "Time (secs.)" -y "Write KBytes/sec" plot-files/dm-0.wkb.plot plot-files/dm-1.wkb.plot $SCRIPT -s lines --title "09 dm request size averages" -x "Time (secs.)" -y "Average Request Size" plot-files/dm-0.avgrq-sz.plot plot-files/dm-1.avgrq-sz.plot $SCRIPT -s lines --title "11 dm queue size averages" -x "Time (secs.)" -y "Average Queue Size" plot-files/dm-0.avgqu-sz.plot plot-files/dm-1.avgqu-sz.plot $SCRIPT -s lines --title "13 dm wait time" -x "Time (secs.)" -y "Average Wait Time" plot-files/dm-0.await.plot plot-files/dm-1.await.plot $SCRIPT -s lines --title "15 dm service time" -x "Time (secs.)" -y "Service Time" plot-files/dm-0.svctm.plot plot-files/dm-1.svctm.plot $SCRIPT --y-range=0:105 -s lines --title "17 dm utilization" -x "Time (secs.)" -y "Utilization" plot-files/dm-0.util.plot plot-files/dm-1.util.plot echo -e "\n\nIOstat Charts\n\n\n" > chart.html for i in `ls -1 *.png`; do echo -e "

" >> chart.html done echo -e "\n\n" >> chart.html