[rrd-users] Re: problem with displaying metrics of different ranges

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


Go Back   Usenet Forums > Networking and Network Related > RRD Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-23-2005
Serge Maandag
 
Posts: n/a
Default [rrd-users] Re: problem with displaying metrics of different ranges

> 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

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:04 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0