[rrd-users] Re: Text formatting.
Chris Josephes
cjoseph at mr.net
Thu Oct 7 18:47:04 MEST 1999
On Thu, 7 Oct 1999, Alex van den Bogaerdt wrote:
> If this does not help, perhaps you should send the relevant part of
> your script so we can have a look at the details.
I did a couple of modifications suggested by Steve, but it still appears
that I have a problem with the columns lining up.
Okay, here's the latest information that I have:
The test graph I've drawn is at
http://137.192.193.6/private/internal/tc/upp/lan/graph1-daily.png
A dump of the arguements passed to RRDs::graph can be found at
http://137.192.193.6/private/internal/tc/upp/lan/graph1-daily.png.txt
Here's the portion of my script setting up the arguements.
%Color=(
"in" => "#00cc00",
"out" => "#0000ff",
);
%Legend=(
"in" => "Incoming ",
"out" => "Outgoing ",
);
# Set the datasource arguements
push(@args,"DEF:in=$rf:ds0:AVERAGE","DEF:out=$rf:ds1:AVERAGE");
push(@args,"AREA:in".$Color{"in"}.":".$Legend{"in"});
push(@args,"GPRINT:in:MAX:Max \\: %.3lf %s");
push(@args,"GPRINT:in:AVERAGE:Average \\: %.3lf %s");
push(@args,"GPRINT:in:LAST:Current \\: %.3lf %s\\n");
push(@args,"LINE1:out".$Color{"out"}.":".$Legend{"out"});
push(@args,"GPRINT:out:MAX:Max \\: %.3lf %s");
push(@args,"GPRINT:out:AVERAGE:Average \\: %.3lf %s");
push(@args,"GPRINT:out:LAST:Current \\: %.3lf %s");
push(@args,"COMMENT: Last updated $time");
RRDs::graph @args;
-- _______________
Chris Josephes __/ MRNet/Onvoy \
chrisj at mr.net __/ www.onvoy.com /
\________________/
--
* To unsubscribe from the rrd-users mailing list, send a message with the
subject: unsubscribe to rrd-users-request at list.ee.ethz.ch
More information about the rrd-users
mailing list