[mrtg] Re: Cumulative graphing issue using "gauge" option - data wrap s after hitting 2^32 Bytes ...
Alex van den Bogaerdt
alex at ergens.op.het.net
Tue Oct 7 09:38:02 MEST 2003
On Tue, Oct 07, 2003 at 02:36:39PM +1000, dhazell at aap.com.au wrote:
> Dear all
> I am trying to graph the cumulative usage im megabytes of the ports from our
> routers to our isps. So far my graphs are quite good except that the OIDs in
> question that I am monitoring seem to wrap (go back to zero) after they get
> to around 4000000000 bytes (2 ^ 32 bytes).
>
> I was thinking that I could write a script to tweak the data that is stored
> in the .log file to somehow recognise that the counter has wrapped and
> simply process the .log data so that the data continues incrementing instead
> of going back to zero.
Alternatively: write your own script that queries the device,
handles any overflow (counterwrap), and returns the difference
to MRTG. MRTG needs to call this script using the external
program; it needs to process the numbers as ABSOLUTE.
Make sure your program knows when MRTG failed to update its log,
and make sure your program knows when a counter was reset rather
than wrapped.
HTH
Alex
--
http://www.googlism.com/index.htm?ism=alex+van+den+bogaerdt&type=1
--
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