[mrtg] Re: Making scripts 64-bit counters
oetiker at ee.ethz.ch
Mon Jul 8 07:35:24 MEST 2002
Today Alex van den Bogaerdt wrote:
> tony bourke wrote:
> > Does anyone know of a way to make a script treated like a 64-bit counter?
> > Target[tofu_64bit] `/usr/local/bin/64bit.pl`:::::2
> > does not seem to do the trick. The counters are 64 bit, and I don't want
> > it treated like a 32 bit counter.
> Loose the :::::2
> > Or does MRTG just not do wrap calculations if the number is above 2^32?
> When I tried using a script of my own, the numbers I generated ended
> up in the log file. This means they are read properly.
Note, that mrtg does not store numbers over 2gb in its logfiles ...
Unless someone sends a correct patch to use long longs (for rateup)
or switches to rrdtool. So while counters of 64bit are fine, rates
of over 32bit are NOT ...
______ __ _
/_ __/_ / / (_) Oetiker, ETZ J97, ETH, 8092 Zurich, Switzerland
/ // _ \/ _ \/ / phoneto:+41(0)1-632-5286 faxto:+41(0)1-632-1517
/_/ \.__/_.__/_/ oetiker at ee.ethz.ch http://google.com/search?q=tobi
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
More information about the mrtg