<div dir="ltr"><div>Thanks but what I was looking for is a way to store the average in the file not extracting it.<br>I thought maybe it would be possible to combine a rrdfetch with every rrdupdate in some way?<br></div><br>
<div> <br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Mar 19, 2013 at 7:08 AM, Steve Shipway <span dir="ltr"><<a href="mailto:s.shipway@auckland.ac.nz" target="_blank">s.shipway@auckland.ac.nz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="direction:ltr;font-size:10pt;font-family:Tahoma">You can use TREND and TRENDNAN to extract a sliding-window average over a specific sized window. This is probably what you want?<br>
<br>
You may also be able to use a cunningly-designed CDEF to make a decayed average over the currently visible time window, and then take a VDEF over that to get the last value for display.<br>
<div><br>
Steve<br>
<br>
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px"><b>Steve Shipway</b></div>
<div style="font-family:Tahoma;font-size:13px">University of Auckland ITS</div>
<div style="font-family:Tahoma;font-size:13px"><i>UNIX Systems Design Lead</i></div>
<div style="font-family:Tahoma;font-size:13px"><a href="mailto:s.shipway@auckland.ac.nz" target="_blank">s.shipway@auckland.ac.nz</a></div>
<div style="font-family:Tahoma;font-size:13px">Ph: <a href="tel:%2B64%209%20373%207599%20ext%2086487" value="+6493737599" target="_blank">+64 9 373 7599 ext 86487</a></div>
<div style="font-family:Tahoma;font-size:13px"><i></i> </div>
</div>
</div>
<div style="font-size:16px;font-family:Times New Roman">
<hr>
<div style="direction:ltr"><font color="#000000" face="Tahoma"><b>From:</b> rrd-users-bounces+s.shipway=<a href="mailto:auckland.ac.nz@lists.oetiker.ch" target="_blank">auckland.ac.nz@lists.oetiker.ch</a> [rrd-users-bounces+s.shipway=<a href="mailto:auckland.ac.nz@lists.oetiker.ch" target="_blank">auckland.ac.nz@lists.oetiker.ch</a>] on behalf of anylrs1 [<a href="mailto:anylrs1@gmail.com" target="_blank">anylrs1@gmail.com</a>]<br>
<b>Sent:</b> Monday, 18 March 2013 11:52 p.m.<br>
<b>To:</b> <a href="mailto:rrd-users@lists.oetiker.ch" target="_blank">rrd-users@lists.oetiker.ch</a><br>
<b>Subject:</b> [rrd-users] Cumulative Moving Average<br>
</font><br>
</div><div><div>
<div></div>
<div>
<div dir="ltr">
<div>Hi All,<br>
<br>
I'm new to rrdtool and trying to figure out if I can use it for my needs.<br>
<br>
I need to store a cumulative moving average in file.<br>
The average will be updated from a counter every 5 minutes.<br>
The cumulative average must be kept over an unlimited amount of time. (A reset will be done manually at the user's discretion).<br>
<br>
Is there a way to do this with rrdtool? <br>
<br>
Thanks<br>
</div>
Andy</div>
</div>
</div></div></div>
</div>
</div>
</blockquote></div><br></div></div>