True, MRTG uses delta's, however the newer releases of MRTG use RRDTool, and this can have problems with negative numbers in field that are defined as COUNTER.
I solve the problem with ONTAP 5.x, by simply adding 2^31 to the returned value. This changes the range from -2^31 through 2^31 to 0 through 2^32.
Edward Henigin wrote:
I'm surprised noone has pointed this out yet, but there is
no problem. All you are monitoring off of this are deltas. If at time T the counter is -30000, and at time T' it's -29000,
-29000 - -30000 ======== 1000 So ops/sec are 1000 / (T' - T) The deltas work just fine, regardless of whether the counter
happens to be positive or negative.
Ed
-- On Wed, Sep 13, 2000 at 06:24:47PM -0300, Henrique Pantarotto said:
Hello,
I am monitoring nfs ops/sec in a F760 filer using MRTG, but the value that I am getting from the last few days are in "negative". I believe it happened an overflow in the integer type used to hold this data, right?
Look:
[root@foo /root]# snmpget filer-e0.terra.com.br public .1.3.6.1.4.1.789.1.2.2.1.0 enterprises.789.1.2.2.1.0 = -1281161705
I know I can fix this by rebooting the filer. But I don't want to do that.
This is a F760 with Ontap 5.3.6.R2. It has a lot of traffic. ;-)
Does anyone here knows of a solution to this problem?
Thanks, _______________________________________________ Henrique Pantarotto SysOp Site São Paulo Terra Networks Brasil S/A A Internet mais sua do que nunca Tel: (11) 5505-5728 r.316/238 ICQ: 6934285 IT: henpa henrique@corp.terra.com.br
-- Edward Henigin ... We build e-business infrastructure solutions CTO, DataFoundry.net ... www.datafoundry.net
-- Matthew Lee Stier * Fujitsu Network Communications Unix Systems Administrator | Two Blue Hill Plaza Ph: 914-731-2097 Fx: 914-731-2011 | Sixth Floor Matthew.Stier@fnc.fujitsu.com * Pearl River, NY 10965