[rrd-users] timestamp and manually inserting data
A Darren Dunham
ddunham at taos.com
Wed Jan 23 18:44:43 CET 2008
On Wed, Jan 23, 2008 at 05:59:56PM +0100, Fabien Wernli wrote:
> On Wed, Jan 23, 2008 at 11:49:22AM -0500, Ron Peterson wrote:
> > I'd still appreciate any insight into the meaning of the --start parameter though.
>
> it's in epoch format (seconds since 01/01/1970)
> so 1 isn't valid if your database starts now (1201107585)
For values between 0 and 24, that's not true. It appears to interpret
it as the hour of the day today (in local timestamps).
$ rrdtool create tmp.rrd --start=0 RRA:MIN:0:5:10 DS:x:GAUGE:2:0:10 ; perl -le "print scalar localtime `rrdtool last tmp.rrd`"
Wed Jan 23 00:00:00 2008
$ rrdtool create tmp.rrd --start=23 RRA:MIN:0:5:10 DS:x:GAUGE:2:0:10 ; perl -le "print scalar localtime `rrdtool last tmp.rrd`" ; rm tmp.rrd
Wed Jan 23 23:00:00 2008
$ rrdtool create tmp.rrd --start=24 RRA:MIN:0:5:10 DS:x:GAUGE:2:0:10 ; perl -le "print scalar localtime `rrdtool last tmp.rrd`" ; rm tmp.rrd
ERROR: start time: did you really mean month 24?
ERROR: opening 'tmp.rrd': No such file or directory
Wed Dec 31 15:59:59 1969
rm: cannot remove `tmp.rrd': No such file or directory
Values between 24 and 315360000 appear to be interpreted as a month and
are declared invalid.
--
Darren Dunham ddunham at taos.com
Senior Technical Consultant TAOS http://www.taos.com/
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >
More information about the rrd-users
mailing list