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

Alex Ponnath alexp at iccinternet.com
Thu Jul 25 23:04:37 MEST 2002


I am not sure what realy the problem is but the precompiled
Version which is avail seems not to like any of my solaris
9 installations.

I was able to solve the problems after I uninstalled Perl
Got the source code of perl, compiled perl and rrdtool and
Mrtg on my mashine and all the problems went away. 

I no longer recive any errors on this...

Thanks

Alex


-----Original Message-----
From: Rainer Bawidamann [mailto:rainer.bawidamann at web.de] 
Sent: Thursday, July 25, 2002 1:50 PM
To: mrtg ml
Subject: [mrtg] 32<>64bit rrdtool problem? (was: RRDTool with MRTG Error
Message)



Hi Alex, Tobi, everyone!

> RRDs::update(/export/home/mrtg/sjo/216.158.204.37_63.251.231.130.rrd,
> '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/216.158.204.37_63.251.231.130.rrd,'A
> VE
> 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
Solaris?

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

Rainer


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

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