[mrtg] Re: mrtg log file with bunches of 0's

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Mon Feb 25 00:18:13 MET 2002

Wupsje wrote:

> To be clear.. i'm trying to log the pages served by a particular website eg
> (incrementing (non resetting) counters)

Yet in another mail you write about random values.  So, what is it?

I bet you haven't read this list for a while, I'm wondering if you've
visited the faq site.

> Shouldn't need for gauge or absolute then should I?

This is something you really should know.  MRTG needs a rate.
rate = delta_counter / delta_time.
delta_counter = current_counter - previous_counter
delta_time    = current_time - previous_time
MRTG is doing these calculations.  However, sometimes it shouldn't.  If
the number you retrieve is already "delta_counter" obviously you shouldn't
do the calculation again and you should specify the option absolute.  If
the number you fetch is already a rate or if the number doesn't increment
over time (such as temperature, cpu-utilisation) then MRTG should not
calculate delta_time nor delta_counter.  In this case, use gauge.

> 1014484123 0 43493
> 1014484123 0 0 0 0

The data has been read into MRTG and yet the rate is zero.  This can
happen if the newly fetched value is lower than the previous value or
if the rate is too high.

If you feed truly random data to MRTG, there will be intervals that
actually look as if the counter has incremented with a proper amount
(proper being defined with MaxBytes).  There will therefore be lines
in the log file that look okay.  They aren't.  One random number has
nothing to do with the next random number so you shouldn't do calculations
on them.  No calculations means using gauge.

Don't ask if you should use gauge/absolute.  *Know* whether or not you
should use either of them.

 / 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 |
| Technical questions sent directly to me will be nuked. Use the list. | 
| 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
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

More information about the mrtg mailing list