[mrtg] Re: Counte32

alex at ergens.op.Het.Net alex at ergens.op.Het.Net
Mon May 1 13:42:46 MEST 2000


Orcun OKMAN wrote:

> But there is a problem with counter32.I have two kinds of oid options
> gauge32 and counter32.When i used gauge there is no problem with 
> graphics.But if i use counter there is problem because  graphics seen zero.
> if i use snmpwalk or snmpget i could see number are growing.If i use gauge
> for these counter options i can see graphics but this graphic is growing.

> Could you help me ?

Even better, I will ...

What most likely is happening here:

MRTG reads some counter.
Five minutes later, it reads the counter again.

MRTG calculates the average increase as follows:
  1) subtract the counter values
  2) subtract the time stamps
  3) divide the outcome of (1) by the outcome of (2)

Suppose your counter has grown with 100 and this happened in 300 seconds.
The calculation in (3) will be:  100 DIV 300 (so: it is an integer) and
this is rounded down to 0.  In other words: that 0 is correct.

How can you overcome this?  Look in config.txt for the "perminute" or
"perhour" option.  The default is (the non-existing) "persecond".

HTH
-- 
   __________________________________________________________________
 / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
| work                                                         private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+
| http://faq.mrtg.org/                                                 |
| http://rrdtool.eu.org  --> tutorial                                  |
+----------------------------------------------------------------------+

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



More information about the mrtg mailing list