[rrd-users] Re: rrdcreate always chooses 16:00:00 PST for start time
R. Benjamin Kessler
bk-lists at kesslerconsulting.com
Fri Nov 30 22:41:39 MET 2001
is it a timezone problem? 16:00 PST = 00:00 GMT
-----Original Message-----
From: rrd-users-bounce at list.ee.ethz.ch
[mailto:rrd-users-bounce at list.ee.ethz.ch]On Behalf Of John Reed
Sent: Friday, November 30, 2001 2:24 PM
To: 'RRD'
Subject: [rrd-users] rrdcreate always chooses 16:00:00 PST for start
time
Hello RRDs,
I'm pulling my hair trying to solve this problem. It seems no matter what
time I choose for --start on a create, the dump file shows my datapoints are
all 16:00:00 PST. I can hardcode the epoch time or I can let it default to
now-10s, I still get 16:00:00 PST.
Here's the snippet I'm using:
my $midnight = timelocal( 0, 0, 0, (localtime)[3,4,5] );
my $one_year = 60*60*24*365;
RRDs::create( $FILE, '--start', ( $midnight - $one_year - 86400 ),
'--step', '86400',
'DS:hits_by_date:GAUGE:172800:0:99999999',
'RRA:AVERAGE:0.5:1:360',
'RRA:AVERAGE:0.5:30:12',
'RRA:AVERAGE:0.5:360:10'
);
And here's a snippit from the dump:
<database>
<!-- 1999-12-05 16:00:00 PST / 944438400 --> <row><v> NaN </v></row>
<!-- 1999-12-06 16:00:00 PST / 944524800 --> <row><v> NaN </v></row>
<!-- 1999-12-07 16:00:00 PST / 944611200 --> <row><v> NaN </v></row>
<!-- 1999-12-08 16:00:00 PST / 944697600 --> <row><v> NaN </v></row>
Anyone have any suggestions? All comments would be greatly appreciated.
Thanks,
John
--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the rrd-users
mailing list