[rrd-users] Re: Another question about MAX value

Sorrell, Al Al_Sorrell at troweprice.com
Wed Apr 17 15:38:43 MEST 2002


Thanks! adding to the rrdplot command the line:
        "DEF:maxbusy=$rrd:busy:MAX",

and then GPRINTing
        "GPRINT:maxbusy:MAX:Max %1.0lf circuits busy for range plotted."

gave me what I was expecting.

Al

-----Original Message-----
From: Alex van den Bogaerdt [mailto:alex at slot.hollandcasino.nl]
Sent: Tuesday, April 16, 2002 6:01 PM
To: Al_Sorrell at troweprice.com
Cc: rrd-users at list.ee.ethz.ch
Subject: Re: [rrd-users] Another question about MAX value


Sorrell, Al wrote:

> I _thought_ I understood this, but...

>                 "RRA:AVERAGE:0.5:$keep_raw_steps:$keep_raw",
>                 "RRA:MAX:0.5:$keep_raw_steps:$keep_raw"

good

>         "DEF:dis=$rrdfile:dis:AVERAGE",
>         "DEF:busy=$rrdfile:busy:AVERAGE",
>         "DEF:idle=$rrdfile:idle:AVERAGE",

>         "GPRINT:busy:MAX:Max %1.0lf circuits busy for range plotted.\\c";

You are GPRINTing max(avg(Value 1..n))

What you want is GPRINT max(max(Value 1..n))

In other words: another DEF, this time actually using the MAX RRA, and
then you use *that* variable in the GPRINT statement.

> seen during the 7 day plot. Since there is (should be) no aggregation of
the

Why not?  Your image isn't one pixel per 5 minutes, is it?

Consolidation/aggregation happens when needed.  This can be because it
is needed for an RRA but also if there is no suitable RRA at hand to
create the image.  If all there is is an RRA with 5 minutes per CDP
yet you are graphing with one hour per pixel, 12 values need to be
aggregated into one, for each pixel.

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