From 5e95090defff64bc8cd7a318a73aa930948fb66d Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 15 Nov 2004 09:20:11 +0000 Subject: Initial import --- bin/remailer-states-make-image-long | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 bin/remailer-states-make-image-long (limited to 'bin/remailer-states-make-image-long') diff --git a/bin/remailer-states-make-image-long b/bin/remailer-states-make-image-long new file mode 100755 index 0000000..e233d12 --- /dev/null +++ b/bin/remailer-states-make-image-long @@ -0,0 +1,30 @@ +#! /bin/sh + +set -e + +RRD_DIR=$1 +TARGETDIR=$2 + +if [ -z "$TARGETDIR" ] ; then + echo "Usage: $0 " >&2 + exit 1 +fi + +rrdtool graph $TARGETDIR/remailer-states-long.png \ + --start `date --date='12 month ago' +%s` \ + --title 'Number of Remailers/Mixmasters' \ + --vertical-label '#' \ + --lower-limit 0 \ + --height 150 \ + DEF:ok1=$RRD_DIR/remailer-states.rrd:state1OK:AVERAGE \ + DEF:warn1=$RRD_DIR/remailer-states.rrd:state1Warning:AVERAGE \ + DEF:crit1=$RRD_DIR/remailer-states.rrd:state1Critical:AVERAGE \ + DEF:ok2=$RRD_DIR/remailer-states.rrd:state2OK:AVERAGE \ + DEF:warn2=$RRD_DIR/remailer-states.rrd:state2Warning:AVERAGE \ + DEF:crit2=$RRD_DIR/remailer-states.rrd:state2Critical:AVERAGE \ + "AREA:ok2#00FF00:in OK (Mix; area)" \ + "STACK:warn2#FFFF00:in Warning (Mix)" \ + "STACK:crit2#FF0000:in Critical (Mix)" \ + "LINE3:ok1#0000FF:in OK (CPunk; line)" \ + "STACK:warn1#00FFFF:in Warning (CPunk)" \ + "STACK:crit1#FF00FF:in Critical (CPunk)" >/dev/null -- cgit v1.2.3