[rrd-users] Re: Issue with graphing
Collins, Eric S.
ESCollins at APACMail.com
Mon Aug 13 19:46:57 MEST 2001
Thanks for all the responses! It wasn't long before I realized my problem.
I do have one other question. When I set my dimensions for the graphs
correctly I can now read them, however the grid lines seem to be uneven and
a couple of the numbers seem chopped off.. Here's what I have, and the html
is set to the resolution returned when generating this graph.
rrdtool graph /usr/local/rrdwork/graphs/day_$1.gif --start -86400
--title="24 Hour History for $1" \
DEF:ld=/usr/local/rrdwork/rrds/$1.rrd:ld_avg:AVERAGE \
DEF:users=/usr/local/rrdwork/rrds/$1.rrd:users:AVERAGE \
DEF:tout=/usr/local/rrdwork/rrds/$1.rrd:tout:AVERAGE \
LINE2:users#00FF00:"Number of Agents calling" \
LINE2:tout#0000FF:"Trunk Outs" \
LINE2:ld#FF0000:"System Load Average \n" \
GPRINT:ld:AVERAGE:"Last Load Average\:%lf\\n" \
GPRINT:tout:AVERAGE:"Avg Trunk Outs\:%lf"
-----Original Message-----
From: Alex van den Bogaerdt [mailto:alex at slot.hollandcasino.nl]
Sent: Friday, August 10, 2001 6:41 PM
To: ESCollins at APACMail.com
Cc: rrd-users at list.ee.ethz.ch
Subject: Re: [rrd-users] Issue with graphing
Collins, Eric S. wrote:
>
> So, I added a title to my
graphs,
> which squeezes my legend and the graph. I tried defining the height and
> width of the graph, but this has made the graphs look all messed up. How
can
> I define the actual size of the graphic, not the graph, so I don't
over-run
> my other fields?
You can't define the height and width of the complete image. You
can only set them for the graphing area. Since the title uses a
font which height is known, you should be able to rely on it's
height. If you need to set the sizes in your HTML page, it's best
to use the numbers that are generated by RRDtool. If that's not
possible, you will need to either alter your HTML page after editing
the graph script, or alter the width and/or height of the canvas.
HTH
--
__________________________________________________________________
/ alex at slot.hollandcasino.nl alex at ergens.op.het.net \
| work private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+
| Technical questions sent directly to me will be nuked. Use the list. |
+----------------------------------------------------------------------+
| http://faq.mrtg.org/ |
| http://rrdtool.eu.org --> tutorial |
+----------------------------------------------------------------------+
--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the rrd-users
mailing list