[mrtg] 32<>64bit rrdtool problem? (was: RRDTool with MRTG Error Message)

Rainer Bawidamann rainer.bawidamann at web.de
Thu Jul 25 22:49:46 MEST 2002

Hi Alex, Tobi, everyone!

> RRDs::update(/export/home/mrtg/sjo/,
> '1027574036:3859125303:1887456640')

Here the new values are put into the database. The time of this update is 
1027574036 = seconds since 1970-1-1 which means Thu Jul 25 07:13:56 2002

Now we ask rrdtool when the last valid data was put into the database:

> --log: Called: RRDs::last()

In this case this should give 1027574036 (the value above). Now we ask   
rrdtool to give us the value of the last update:

> RRDs::fetch(/export/home/mrtg/sjo/,'AVE
> RAGE','-s',4413396878844204344,'-e',4413396878844204344)

Here 4413396878844204344 should be a timestamp, in this case it should be 
1027574036. Now lets look at the values in hex:

1027574036          = 3D3F8914
4413396878844204344 = 3D3F891400539538

Funny, isn't it? It looks like there is a problem with 32 vs. 64 bit. Did 
you compile rrdtool yourself? Or is it a version compiled for 32bit

Maybe rrdtool or the perl interface of rrdtool has a problem here?


PS: Maybe the logic of update/last/fetch might need a review, but that
    is independent of the problem described above

Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

More information about the mrtg mailing list