[rrd-users] Re: Dealing with counter resets

Sune Stjerneby sst at vmunix.dk
Sun Dec 2 00:47:06 MET 2001


On Sat, Dec 01, 2001 at 03:05:44PM -0800, Logg, Connie A. wrote:
> There is (in cisco equipment at least)
> an snmp variable that indicates how long it has been since the
> counters were cleared.  Read it an check if the time  was since your last reading.
> If so, ignore one round of in&out counters.  This also takes care of power failures 
> and other glitches that may have caused the device to reset the counters.

Thanks - I modified this idea bit, so what I ended up doing was comparing the current
value of *Octets with the previous value, and if the previous value is less than the
current, skip the insert (the script exits).

I'll see how this turns out next time a counter-reset occurs, also if this might
conflict with rrdtools handling of 32bit/64bit counter overflows.

-- 
Sune Stjerneby <sst@{vmunix,moof}.dk
 - http://dogcow.moof.dk/
 - Clarus > *

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