#!/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 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 -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 -s lines --title "03 context switches" -x "Time (secs.)" -y "context switches/sec" plot-files/context_switching.plot $SCRIPT -s lines --title "04 interrupts" -x "Time (secs.)" -y "interrupts/sec" plot-files/interrupts.plot $SCRIPT -s lines --title "05 process creation" -x "Time (secs.)" -y "Processes Created/sec" plot-files/process-creation.plot $SCRIPT -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 -s stackedlines --title "07 swap" -x "Time (secs.)" -y "KB of Swap" --legend-position=bottom plot-files/swap-free.plot plot-files/swap-used.plot $SCRIPT -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/swap-used-percent.plot $SCRIPT -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 -s lines --title "10 runnable processes" -x "Time (secs.)" -y "Processes in the Run Queue" plot-files/run-queue-size.plot $SCRIPT -s lines --title "11 total processes" -x "Time (secs.)" -y "Process List Size" plot-files/process-list-size.plot $SCRIPT -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