[rrd-users] Problem fetching/graphing MAX values of integers giving floating values

Julien EBALLARD ouato at hotmail.com
Fri Apr 20 15:58:59 CEST 2007



Thanks for answering.

> As far as I understand you have to fill the graphs exactly at the same time, second wise, when you created them and keep
> on doing that for the rest of your life.
In fact... that's nearly what I'm doing ^^

I'm creating the RRD file from a Log file.
I have an algorythm that fills the rrd with the rate corresponding to the RRA step. But this is not the problem, because it seems to work correctly.

> The other thing you might try is LAST instead of MAX, although I don't know if that's what you want.
LAST will not do what I want because I don't want "Undef" to become the NEXT value I put... but the Last..., and I feel like the CF name is kind of disturbing, because on insertion, the previous undef values takes the NEXT value, and not the LAST...

Still, my algorythm do the work, and fill the RRD at the correct intervals, with correct values...

My problem is that the maximum values on the graph or in fetches should Never be different from 0 or 1, because these are the only values inserted. There should Not be maximums with float values...


----------------------------------------
> Subject: RE: [rrd-users] Problem fetching/graphing MAX values of integers giving floating values
> Date: Fri, 20 Apr 2007 15:36:35 +0200
> From: martin.boer at atosorigin.com
> To: ouato at hotmail.com
> 
> Hi Julien,
> 
> As far as I understand you have to fill the graphs exactly at the same time, second wise, when you created them and keep
> on doing that for the rest of your life.
> I'm sure someone else will explain to you why this is the case (I'm not convinced it's a good feature though).
> 
> The other thing you might try is LAST instead of MAX, although I don't know if that's what you want.
> 
>  
> 
> -----Original Message-----
> From: rrd-users-bounces at lists.oetiker.ch
> [mailto:rrd-users-bounces at lists.oetiker.ch]On Behalf Of Julien EBALLARD
> Sent: vrijdag 20 april 2007 15:00
> To: rrd-users at lists.oetiker.ch
> Subject: [rrd-users] Problem fetching/graphing MAX values of integers
> giving floating values
> 
> 
> 
> 
> I'm currently having a problem while fetching And graphing a set of values.
> 
> I'm updating the .rrd file ONLY with values 0 and 1, every 60 seconds.
> 
> My RRD step is 60.
> 
> My RRD file caracteristics are :
> 
> DS:inuse:GAUGE:1800:0:10000
> 
> RRA:MAX:0.5:1:604800
> RRA:AVERAGE:0.5:1:604800
> 
> RRA:MAX:0.5:60:525600
> RRA:AVERAGE:0.5:60:525600
> 
> Now when I graph the MAX values, or when I fetch them,
> 
> Some values are 0 and 1, and some are between... like '8.1666666667e-01'
> 
> Maybe I misunderstood something but I thought that MAX CF would keep the Maximum value in intervals...
> 
> (I also think this question have been asked thousand times... but I did'nt found my answer on the mailing list site...)
> 
> Can somebody help ?
> _________________________________________________________________
> Essayez Live.com et créez l'Internet qui vous ressemble : infos, sports, météo et bien plus encore !
> http://www.live.com/getstarted
> _______________________________________________
> rrd-users mailing list
> rrd-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
> 

_________________________________________________________________
Essayez Live.com et créez l'Internet qui vous ressemble : infos, sports, météo et bien plus encore !
http://www.live.com/getstarted


More information about the rrd-users mailing list