[rrd-users] Re: Are overflows assumed to happen only at 2^32?

Tobias Oetiker oetiker at ee.ethz.ch
Thu Aug 26 07:33:48 MEST 1999


Yesterday you sent me mail regarding [rrd-users] Are overflows assumed to...:

*> 
*> Newbie alert.
*> 
*> I'm trying to rrd-ify the number of times a string occurs in an apache
*> access.log file.  I thought COUNTER would be good.  The logfile is
*> rotated nightly, so counts go to zero, but not really because the
*> "counter" overflowed.  For example:
*> 
*> rrdtool update foo.rrd --template A:B:C:D 935477400:7006:1:1015:4
*> rrdtool update foo.rrd --template A:B:C:D 935477700:7056:1:1017:6
*> rrdtool update foo.rrd --template A:B:C:D 935478000:66:0:0:0
*> rrdtool update foo.rrd --template A:B:C:D 935478300:172:0:1:0
*> 
*> The graph shows a HUGE spike at the time when the counter goes to
*> zero.  It very much looks like the delta is 2^32.
*> 
*> Maybe I should use GUAGE instead (and do my own subtraction)?

Hmm I am not sure I can follow exactly. maybe the ABSOLUTE ds type helps ?
have you set a MIN and MAX value when defining the DATA source ... this is
importante for rrdtool todo sanity checking ...

cheers
tobi
*> 
*> Duane W.
*> 
*> --
*> * To unsubscribe from the rrd-users mailing list, send a message with the
*>   subject: unsubscribe to rrd-users-request at list.ee.ethz.ch
*> 
*> 

-- 
 ______    __   _
/_  __/_  / /  (_) Oetiker, Timelord & SysMgr @ EE-Dept ETH-Zurich
 / // _ \/ _ \/ / TEL: +41(0)1-6325286  FAX:...1517  ICQ: 10419518 
/_/ \.__/_.__/_/ oetiker at ee.ethz.ch http://ee-staff.ethz.ch/~oetiker

--
* To unsubscribe from the rrd-users mailing list, send a message with the
  subject: unsubscribe to rrd-users-request at list.ee.ethz.ch



More information about the rrd-users mailing list