[rrd-users] How to define a counter wrap ?

Christian Volkmann CVolkmann at orga-systems.com
Thu Feb 12 14:08:44 MET 2004


Hi to all,

I am looking for a feature to use a defined wrap around for a counter.
I have to work with a counter which turns around at 1.000.000

My idea is a new DST:

After a define "DS:a:WRAPCOUNTER:<heartbeat>:MIN:MAX"

like: DS:a:WRAPCOUNTER:600:0:1000000

=> rrdtool should count    999999     => 2
                            (valueold) => (valuenew)

if ( valueold > valuenew )
{
	value= valuenew + MAX - valueold
}

Is it possible to do such measurement with the current rrd-version ?
This would prevent an undefined value for counter where the wrap is known.


Best regards,

Christian

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