#!/bin/sh -e # # rough program for graphing all the data we have accumulated # # $Cambridge: hermes/src/stats/scripts/rrdgraphall,v 1.44 2004/11/30 13:45:06 fanf2 Exp $ PATH=$PATH:/opt/stats/bin:/opt/stats/scripts RRDDIR=/data/stats/ppsw/graphs IMGDIR=/data/www/stats/ppsw/img HTMLDIR=/data/www/stats/ppsw/ # extract the list of data sets from an rrd file # rrd_ds () { rrdtool info $1 | sed '/ds[[]\([^]]*\)[]][.]type.*/!d;s//\1/' } # basename of an rrd file # rrd_base () { base=${1#$RRDDIR/} echo ${base%.rrd} } # basic list of arguments for RRD::GRAPH # (see above for relative paths) # RRDARGS="--lazy --width 720 --height 360 --lower-limit 0 --imginfo ''" RRDLOG="--lazy --width 720 --height 360 --logarithmic --imginfo ''" # define all the data sets for RRD::GRAPH # for file in $RRDDIR/*.rrd do base=`rrd_base $file` for ds in `rrd_ds $file` do RRDARGS="$RRDARGS DEF:$base$ds=$file:$ds:AVERAGE" RRDLOG="$RRDLOG DEF:$base$ds=$file:$ds:AVERAGE" done done cd $HTMLDIR rm -f index.html cat <<-EOF >>index.html
Contents : overview of incoming message classifications : proportional view of message classifications : proportional comparison of rejection criteria : proportional view of user agent protocols : alternative view of roles : proportion of traffic forwarded by Hermes : comparison of various load indicators : mean time between acceptance and delivery : temporary rejection comparison
Raw data sets EOF for file in $RRDDIR/*.rrd do base=`rrd_base $file` cat <<-EOF >>$cgi : $base EOF done # hand-drawn grapgs cat <<-EOF >>$cgi
Most of the graphs below are measuring messages (or other events) per second. The volume measurements are in bytes per second.
If you have any questions or comments about the graphs, please email