[rrd-users] Re: Adding Max, Min and Ave values to graph

Alex van den Bogaerdt alex at ergens.op.het.net
Thu Oct 10 17:17:40 MEST 2002


On Thu, Oct 10, 2002 at 09:52:55AM -0400, Carter, Steve wrote:
> Hi,
>  
> I am plotting graphs on traffic usage in and out of a router.  I would also
> like to be able to show the Min, Max and Ave in bits/second on the graph as
> well underneath the plot.

I guess that you mean the legend when you say "underneath the plot" ?

"on the graph" would indicate you want to draw a line, right?

Just use "rrdtool graph ...... PRINT...."
without doing any graphics.

(PRINT is just like GPRINT however it prints ascii to stdout
in stead of on the image/in the legend)


Now collect the numbers you just created, use them in the second
invocation of "rrdtool graph ...."

Use: HRULE:$somevar#FF0000:"Maximum incoming"
in the 2nd rrdtool invocation where $somevar is evaluated before
RRDtool sees it (so: rrdtool gets a number).

--
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