<div>Thank you for your answer.</div>
<div>Indeed, i put a wrong command in my previous mail. The frequency is not correct but the other parameters is good.</div>
<div>Concerning my problem, does it mean that i should use a very hight value for xff (like 0.9 or 0.99) ?<br>Thanks<br> </div>
<div><span class="gmail_quote">2007/11/19, Simon Hobson <<a href="mailto:linux@thehobsons.co.uk">linux@thehobsons.co.uk</a>>:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">At 11:22 +0100 19/11/07, Gwenael Lahay wrote:<br>>Hello,<br>><br>>I store network flows in various rrd file.
<br>><br>>I use this options to create rrd files :<br>>rrdtool create test.rrd --step 60 DS:bytes:ABSOLUTE:400:0:U DS:packets:ABSOLUTE:400:0:U DS:flows:ABSOLUTE:400:0:U RRA:AVERAGE:1:0:4320 RRA:AVERAGE:0:5:2016 RRA:AVERAGE:0:15:2976
<br><br>>From the help pages :<br><br>>>RRA:AVERAGE | MIN | MAX | LAST:xff:steps:rows<br>>>xff The xfiles factor defines what part of a consolidation interval may be made up from *UNKNOWN* data while the consolidated value is still regarded as known. It is given as the ratio of allowed *UNKNOWN* PDPs to the number of PDPs in the interval. Thus, it ranges from 0 to 1 (exclusive).
<br>>>steps defines how many of these primary data points are used to build a consolidated data point which then goes into the archive.<br>>>rows defines how many generations of data values are kept in an RRA.
<br><br>In your RRA definitions, you have one with ZERO steps, the others have ZERO for xff - which means they cannot have any unknown data at all.<br><br>>I create a rrd when i found a flow.<br>><br>>I have a problem on average calculation.
<br>><br>>For example, i detect a flow at 2007-11-14 10:30:00. Then i create a file with the first value at this timestamp.<br>>Then, i have only zero value.<br>><br>>...<br>><!-- 2007-11-14 10:28:00 CET / 1195032480 --> <row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<br>><!-- 2007-11-14 10:29:00 CET / 1195032540 --> <row><v> NaN </v><v> NaN </v><v> NaN </v></row><br>><!-- 2007-11-14 10:30:00 CET / 1195032600 --> <row><v>
1.5000000000e+00 </v><v> 1.6666666667e-02 </v><v> 1.6666666667e-02 </v></row><br>><!-- 2007-11-14 10:31:00 CET / 1195032660 --> <row><v> 0.0000000000e+00 </v><v>
0.0000000000e+00 </v><v> 0.0000000000e+00 </v></row><br>><!-- 2007-11-14 10:32:00 CET / 1195032720 --> <row><v> 0.0000000000e+00 </v><v> 0.0000000000e+00 </v><v>
0.0000000000e+00 </v></row><br>>...<br>><br>>The problem is that the average which is calculated every half an hour indicates NaN at 10:30:00 while i am waiting from a value greater than zero.<br>>
<br>> <!-- 2007-11-14 09:00:00 CET / 1195027200 --> <row><v> NaN </v><v> NaN </v><v> NaN </v></row><br>><!-- 2007-11-14 09:30:00 CET / 1195029000 --> <row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<br>><!-- 2007-11-14 10:00:00 CET / 1195030800 --> <row><v> NaN </v><v> NaN </v><v> NaN </v></row><br>> <!-- 2007-11-14 10:30:00 CET / 1195032600 --> <row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<br>><!-- 2007-11-14 11:00:00 CET / 1195034400 --> <row><v> 0.0000000000e+00 </v><v> 0.0000000000e+00 </v><v> 0.0000000000e+00 </v></row><br>><!-- 2007-11-14 11:30:00 CET / 1195036200 --> <row><v>
0.0000000000e+00 </v><v> 0.0000000000e+00 </v><v> 0.0000000000e+00 </v></row><br>><br>>Could you help me ? Is there a solution to initialize the rdd with zero values ?<br><br><br>
At 10:30, for the period 10:00 to 10:30 you have 29 unknown values and 1 known values - since 29/30 is greater than zero (the xff value for the RRA) then the result is unknown.<br><br>However, I cannot see this RRA in the definition given above. I can only see RRAs for 0, 5, and 15 steps/cdp.
<br><br>_______________________________________________<br>rrd-users mailing list<br><a href="mailto:rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</a><br><a href="https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users">
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users</a><br></blockquote></div><br>