[rrd-users] setting last_update
Dan Langille
dan at langille.org
Thu Feb 15 17:27:52 CET 2007
On 15 Feb 2007 at 16:53, Alex van den Bogaerdt wrote:
> On Thu, Feb 15, 2007 at 10:48:56AM -0500, Dan Langille wrote:
>
> > > You could try a much more simple case as well:
> > >
> > > rrdtool create test.rrd DS:x:GAUGE:600:U:U RRA:AVERAGE:0:1:5
> > > rrdtool dump test.rrd
> >
> > That looks OK
>
> > # rrdtool dump test.rrd | less
> > <!-- Round Robin Database Dump --><rrd> <version> 0003 </version>
> > <step> 300 </step> <!-- Seconds -->
> > <lastupdate> 1171554437 </lastupdate> <!-- 2007-02-15
> > 07:47:17 PST -->
>
>
> Hmmm....
>
> Try adding "--start=0". Perhaps it isn't as harmless as it looks.
Well, you are correct:
[dan at supernews:~/tmp] $ rm test.rrd
[dan at supernews:~/tmp] $ rrdtool create test.rrd --start=0
DS:x:GAUGE:600:U:U RRA:AVERAGE:0:1:5
[dan at supernews:~/tmp] $ rrdtool dump test.rrd | head
<!-- Round Robin Database Dump --><rrd> <version> 0003 </version>
<step> 300 </step> <!-- Seconds -->
<lastupdate> 944503488000 </lastupdate> <!-- 31900-02-15
00:00:00 PST -->
<ds>
<name> x </name>
<type> GAUGE </type>
<minimal_heartbeat> 600 </minimal_heartbeat>
<min> NaN </min>
<max> NaN </max>
[dan at supernews:~/tmp] $
--
Dan Langille : Software Developer looking for work
my resume: http://www.freebsddiary.org/dan_langille.php
PGCon - The PostgreSQL Conference - http://www.pgcon.org/
More information about the rrd-users
mailing list