<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">You seem to be misunderstanding how RRDTool works.<br>
<br>
Remember that, after every update of an RRA, the oldest value is thrown away to make room for the new one. So, the 'first' time (the timestamp of the oldest bucket in the RRA) will increase every time you update, as the last bucket is thrown away.<br>
<br>
Also, the 'first' value is the oldest bucket, *whether or not it has been filled*. So, if the RRA is 1 month long, then 'first' will be 1 month before the last update time, even if you have only updated once, since the buckets are implicitly created.<br>
<br>
Remember RRDTool is not like an Oracle database -- it is not an every-increasing list of updates that starts at size 0 and gets constantly bigger.<br>
<br>
Also, this is how to use a VDEF to get the value of the first 'foo' item in the foo.rrd, using the most appropriate Average RRA for the timewindow:<br>
<br>
<span dir="ltr"><font face="courier new,monospace">DEF:foods:foo.rrd:foo:AVERAGE<br>
VDEF:firstfoo:foods,FIRST<br>
PRINT:foo</font></span><br>
<br>
<br>
Steve<br>
<br>
<div><br>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px"><strong>Steve Shipway</strong></div>
<div style="font-family:Tahoma; font-size:13px">University of Auckland ITS</div>
<div style="font-family:Tahoma; font-size:13px"><em>UNIX Systems Design Lead</em></div>
<div style="font-family:Tahoma; font-size:13px"><a href="mailto:s.shipway@auckland.ac.nz">s.shipway@auckland.ac.nz</a></div>
<div style="font-family:Tahoma; font-size:13px">Ph: +64 9 373 7599 ext 86487</div>
<div style="font-family:Tahoma; font-size:13px"><em></em><br>
</div>
</div>
</div>
</div>
</body>
</html>