#!/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 --table html -s lines --title "01 cpu utilization" -x "Time (secs.)" -y "CPU Utilization" --y-range=0:105 plot-files/cpu.000.plot plot-files/cpu.001.plot plot-files/cpu.010.plot plot-files/cpu.011.plot plot-files/cpu.012.plot plot-files/cpu.013.plot plot-files/cpu.014.plot plot-files/cpu.015.plot plot-files/cpu.002.plot plot-files/cpu.003.plot plot-files/cpu.004.plot plot-files/cpu.005.plot plot-files/cpu.006.plot plot-files/cpu.007.plot plot-files/cpu.008.plot plot-files/cpu.009.plot $SCRIPT --table html -s lines --title "02 network throughput" -x "Time (secs.)" -y "KBytes/sec" plot-files/net.lo.rx.plot plot-files/net.lo.tx.plot plot-files/net.eth0.rx.plot plot-files/net.eth0.tx.plot plot-files/net.eth1.rx.plot plot-files/net.eth1.tx.plot $SCRIPT --table html -s lines --title "03 context switches" -x "Time (secs.)" -y "context switches/sec" plot-files/context_switching.plot $SCRIPT --table html -s lines --title "04 interrupts" -x "Time (secs.)" -y "interrupts/sec" plot-files/interrupts.plot $SCRIPT --table html -s lines --title "05 process creation" -x "Time (secs.)" -y "Processes Created/sec" plot-files/process-creation.plot $SCRIPT --table html -s stackedlines --title "06 memory" -x "Time (secs.)" -y "KB of Memory" --legend-position=bottom plot-files/mem-free.plot plot-files/mem-buffers.plot plot-files/mem-cached.plot plot-files/mem-other.plot $SCRIPT --table html -s lines --title "07 memory commit" -x "Time (secs.)" -y "KB of Commit" --legend-position=bottom plot-files/commit.plot $SCRIPT --table html -s lines --title "08 percent memory used" -x "Time (secs.)" -y "Percent" --y-range=0:100 --legend-position=bottom plot-files/mem-used-percent.plot plot-files/commit-percent.plot $SCRIPT --table html -s lines --title "09 swapping" -x "Time (secs.)" -y "Pages Swapped/sec" --legend-position=bottom plot-files/swap-in.plot plot-files/swap-out.plot $SCRIPT --table html -s lines --title "10 runnable processes" -x "Time (secs.)" -y "Processes in the Run Queue" plot-files/run-queue-size.plot $SCRIPT --table html -s lines --title "11 total processes" -x "Time (secs.)" -y "Process List Size" plot-files/process-list-size.plot $SCRIPT --table html -s lines --title "12 load averages" -x "Time (secs.)" -y "Rolling Load Average" --legend-position=bottom plot-files/load-average-1.plot plot-files/load-average-5.plot plot-files/load-average-15.plot echo -e "\n
\n\n" >> chart.html html_file=`echo $i | sed -e "s/png/html/"` if [ -e $html_file ]; then echo -e " | \n" >> chart.html cat $html_file >> chart.html echo -e " | \n" >> chart.html fi echo -e "