<div dir="ltr"><div class="gmail_extra">Alex;</div><div class="gmail_extra"><br></div><div class="gmail_extra">Er ... I cannot seem to get the syntax correct..</div><div class="gmail_extra"><br></div><div class="gmail_extra">
Can you advice?<br><br><font face="courier new, monospace">rrdtool graph - VDEF:FIRST:myrrd.rrd:CPUBusy:FIRST</font><br><br>where</div><div class="gmail_extra"><br></div><div class="gmail_extra">CPUBusy is the defined DS</div>
<div class="gmail_extra">myrrd.rrd is the RRD database file itself..</div><div class="gmail_extra"><br></div><div class="gmail_extra">The above keeps</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">
<font face="courier new, monospace">$ rrdtool graph - VDEF:FIRST=myrrd.rrd:CPUBusy:FIRST</font></div><div class="gmail_extra"><font face="courier new, monospace">ERROR: Cannot parse line 'VDEF:FIRST=myrrd.rrd.rrd:CPUBusy:FIRST'</font></div>
</div><div class="gmail_extra"><br>Deepest Regards<br>Steven Sim<br><br><br><div class="gmail_quote">On Tue, Jul 1, 2014 at 10:08 PM, Alex van den Bogaerdt <span dir="ltr"><<a href="mailto:alex@vandenbogaerdt.nl" target="_blank">alex@vandenbogaerdt.nl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">> Simon;<br>
><br>
> Something is seriously wrong and I don't know what it is.<br>
><br>
> My Perl script parses the data file just fine.<br>
><br>
> It plots just fine.<br>
><br>
> The legends are correct<br>
><br>
> The dates are correct.<br>
><br>
> BUT when I use rrdtool first <rrd database> in an attempt to get the time<br>
> of the first entry, I get a Unix time stamp which is one entire month<br>
> EARLIER than the first entry in the file.<br>
<br>
As already explained, "rrdtool first" gives you the first available slot.<br>
<br>
Maybe you want to look at the data provided by the VDEF function "FIRST".<br>
"<br>
<br>
Return the last/first non-nan or infinite value for the selected data<br>
stream, including its timestamp.<br>
<br>
Example: VDEF:first=mydata,FIRST"<br>
<br>
If you "rrdtool graph" without actually using any graphing elements, and<br>
the PRINT (not GPRINT) this value's time component, you can use it in a<br>
script.<br>
<br>
HTH<br>
Alex<br>
<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" target="_blank">https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users</a><br>
<br>
</blockquote></div><br></div></div>