[mrtg] Re: Weekly Max Greater than Daily
Alex van den Bogaerdt
alex at ergens.op.HET.NET
Fri Aug 16 10:13:39 MEST 2002
Jim McAtee wrote:
> With all the non-rate related items people are monitoring with mrtg (I know,
> using screwdrivers to hammer nails), you'd think the developers might have
> adapted it to handle such tasks. All you would really need is a simple option
> that would be passed to rateup to tell it not to normalize the data. If you
> get a gauge rate somewhere between timeslots at n*300 and (n+1)*300, just
> record that rate for time (n+1)*300 and be done with it.
Alright, let's work out an example.
If n*300 is 12:00 and thus (n+1)*300 is 12:05, we get the following:
at 12:00 you record a rate (gauge) of 100. At 12:01 you record
a rate of 200. The next sample comes in at 12:05 and is at rate
250.
So, for the entire interval of 12:00 to 12:05 MRTG/rateup/rrdtool
wants to calculate *one* rate. Which one is it?
a) 200 because this was the first rate during that interval
b) 250 because this was the last rate during that interval
c) 0.2*200 + 0.8*250 because this is the averaged rate during that interval
The design is so that these calculations are done in a few steps:
1) calculate a rate
2) normalize this rate
3) store the normalized rate
A gauge is the result of step (1)
For step (2) together with RRDtool, you can use the consolidation
function LAST which will store, in this case, the rate 250.
--
__________________________________________________________________
/ 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