[mrtg] Re: Logging problems with small data?

Alex van den Bogaerdt alex at slot.hollandcasino.nl
Mon Jun 18 17:09:29 MEST 2001


Jaime Pirnie wrote:
> 
> Ah ok.  Understand now.  What I did was multiply the target by 300 to
> get the rate for that period (300 seconds).  Now, using my example
> that I had below, it would not be this:
> 
> Before:
> 992841130 52500 0
>  
> 5 mins later:
> 992841130 53400 0
> 
> Delta == 900, DeltaTime == 300, Rate == 3 per period (300 seconds)
> 
> Thats what I think I want, but am I going to get screwed values by
> doing this?  I want it to display how many occured in the last 300
> seconds like I mentioned.  I think this method will work for me -
> please correct me if I am wrong.

It will work, more or less.  It is virtually impossible to provide the
values to MRTG at *exactly* hh:00, hh:05, hh:10 etcetera.  Even worse,
the interval will not be exactly 300 seconds.

This means that data will be resampled (see docs and/or faq).  Also,
you multiply the original value by 300 and MRTG will divide by some
number close, but not equal to, 300.

> Also, is there any way to have it display and plot the real value
> instead of the average?

Yes, search for GAUGE in the file reference.txt   This will not allow
you to enter "3" in the database.  You will see 175 and 178 or maybe
[174 or 176] and [177 or 179] (due to resampling).


> ---- Original Message ----
> From: alex at slot.hollandcasino.nl
> To: jaime at pirnie.org (Jaime Pirnie), 
> Subject: RE: [mrtg] Re: Logging problems with small data?
> Date: Mon, 18 Jun 2001 09:22:44 +0200 (CEST)
> 
> >
> >Jaime Pirnie wrote:
> >
> >> Hello everyone.. First off, I want to say that I have read the
> >> manuals and such and am still having some trouble.  Maybe I just
> >> don't understand how mrtg fully works. 
> >
> >Check.  What you need to know is that MRTG doesn't work with values,
> >it works with rates. Also MRTG only works with integers.
> >
> >> Before:
> >> 992841130 175 0
> >> 
> >> 5 mins later:
> >> 992841130 178 0
> >
> >Delta == 3, DeltaTime == 300, Rate == 0.01 per second.  This number
> >gets truncated to zero.  You shouldn't expect '3' to turn up anywhere
> >in the log file.
> >
> >options (choose one, not all):
> >- Try the perHour option
> >- Multiply the target by 100 and display percentages
> >- Use RRDtool 

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