[rrd-users] Manipulating .rrd files especially timestamp

goldt at solidmedia.de goldt at solidmedia.de
Thu Jan 13 16:06:24 MET 2005


Hello,

i have the following situation:

Every 24 hours a cronjob adds the availability of a host to a .rrd file
which means usually the value 100 is added. The jobs runs at 1:00 a.m. but
i pass to rrdtool update the timestamp of the previous day at 23:59:59.
Later i fetch the values out of the .rrd file but what i get as the
timestamp is 1:00 a.m. of the next day that means the time when the
cronjob runs.

I tried to dump the .rrd file as .xml to change somehow the starttime
somewhere to 23:59:59 but i couldn't find a place to change it.

Here are the first lines of today's dump:
<!-- Round Robin Database Dump -->
<rrd>
    <version> 0001 </version>
    <step> 86400 </step> <!-- Seconds -->
    <lastupdate> 1105570799 </lastupdate> <!-- 2005-01-12 23:59:59 MET -->

So you see lastupdate is fine, but then this is the only place where you
see a timestamp. The other timestamps are just comments for the rows.

1. Why is rrdtool ignoring the given timestamp ?
2. How to subtract 3601 seconds from all timestamps ?

Greets, Sven




--
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