This is a discussion on [rrd-users] Re: problem with displaying metrics of different ranges within the RRD Users forums, part of the Networking and Network Related category; > For example, I can do this: > CDEF:aline4=line4,10,/ > But, instead of a static value of ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
> For example, I can do this:
> CDEF:aline4=line4,10,/ > But, instead of a static value of 10, I need a dynamic value > that depends on the MAX value of the metric. > > I was hoping to get that information from the info, but all I > got for the .max was a NaN: > rra[0].cf = "MAX" > rra[0].cdp_prep[0].value = NaN This not the maximum value in te database. You want to know the max value of the average RRA within the Time span you are going to graph. That will define your scaling Factor. If you don't understand that, I urge you to read the tutorial at the rrdtool site. You can get that average in two ways: 1. do an "rrdtool fetch" with the same time span you use for your graph statement. Sort the values by size with awk/perl whatever and grab the highest (last) value. 2. copy your "rrdtool graph" statement, remove the lines, area's and stacks and PRINT the max value. Grab that and reuse it in your graph statement to scale your line height. So you'll need to do some scripting. Serge. ------------- Op de inhoud van dit e-mailbericht en de daaraan gehechte bijlagen is de inhoud van de volgende disclaimer van toepassing: http://www.zeelandnet.nl/disclaimer.php -- Unsubscribe mailto:rrd-users-request@list.ee.ethz.ch?subject=unsubscribe Help mailto:rrd-users-request@list.ee.ethz.ch?subject=help Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi |
![]() |
| Thread Tools | |
| Display Modes | |
|
|