[mrtg] Re: RRDTOOL

Michael Earls Michael.Earls at cchmc.org
Fri Apr 18 16:31:12 MEST 2003

mrtg rrdtool
What do I need to add to the rrdtool graph to make it look more like
mrtg graph?  This is in regards to the bytes / KBS being displayed.
rrdtool graph 
#! /bin/sh

echo "Content-Type: image/png"
rrdtool graph - \
--imgformat PNG \
--interlaced \
--start="-86400" \
--title 'ISP Traffic Inbound' \
--base="1000" \
--width="750" \
--height="200" \
--alt-autoscale-max \
--vertical-label "Kilobytes Per Second" \
DEF:A="/var/www/mrtg/traffic/fastethernet2_0.rrd":ds0:AVERAGE \
DEF:B="/var/www/mrtg/traffic/atm1_0.91-aal5_layer.rrd":ds0:AVERAGE \
LINE2:A#00CF00:"fa02" \
GPRINT:A:LAST:" Current\:%8.2lf %s" \
GPRINT:A:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:A:MAX:"Maximum\:%8.2lf %s\n" \
LINE2:B#002A97:"atm" \
GPRINT:B:LAST:"Current\:%8.2lf %s" \
GPRINT:B:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:B:MAX:"Maximum\:%8.2lf %s" 
PGP Info: KeyID 0x5EB59708 Fingerprint 108B A1D8 76F5 08A8 501A F28C
86F4 4BC5 5EB5 9708 

Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

More information about the mrtg mailing list