[mrtg] Re: Postfix Stats graphing wrong
Alex van den Bogaerdt
alex at ergens.op.het.net
Sat Nov 15 10:56:20 MET 2003
On Fri, Nov 14, 2003 at 12:05:05PM -0700, Jeff Gojkovich wrote:
> Which doesn't make sense to me. I am not sure how MRTG handles the
> numbers it receives though. I though the default was to take the
> difference of the new number and the last result.
and divide this by the difference in time.
> > I have a script that grabs the rejects from a postfix box. It returns
> > results to MRTG like. 33479 33479 35 days 5:07 heffe.eaznet.com
> >
> > Then five minutes later.
> > 33609
> > 33609
> > 35 days 5:12
> > heffe.eaznet.com
(33609-33479)/(05:12 - 05:07) = 130/300 = 0.433333...
If "perminute" is used, the rate will be multiplied by 60 and become
130/5 = 26.0 (there are five minutes in 300 seconds)
Perhour will result in 130/0.833333... = 1560 (0.08333.. hours in 5 minutes)
If the rate seems to be constant, the input will be constant. Focus on
that; for instance: let your script log the time and the values to a
separate logfile and do the calculations like I did above.
HTH
Alex
--
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