[mrtg] Re: Log File Conversion
Fruitman, Corey
Corey.Fruitman at allstream.com
Mon Dec 1 22:48:32 MET 2003
The first line of the log file shows the raw counters from the last poll. They can't be converted into the "current" measurement because the "current" measurement is a *rate*, not a fixed number.
When MRTG gets the next poll, it replaces the first line with the raw values it gets from the device and calculates the *rate* on the next line.
Suppose you got the following measurements...
|--------- raw --------|
Time Counter In Counter Out
10:00am 100 250
10:05am 110 260
10:10am 115 280
At 10:00 the first line would show "100" and "250" -- the raw counters from the last poll.
But at 10:10am, the first line of the log file would now show 115 and 280 since they were the last counters retrieved from the device. The "current" measurement in on your graph would be (115-110)/300 [where 300 -- or five minutes -- is the number of seconds between polls] and your "current" measurement out would be (280-260)/300.
Hope that helps,
Corey.
-----Original Message-----
From: mrtg-bounce at list.ee.ethz.ch [mailto:mrtg-bounce at list.ee.ethz.ch]On
Behalf Of Chu, Quang
Sent: December 1, 2003 4:15 PM
To: 'mrtg at list.ee.ethz.ch'
Subject: [mrtg] Log File Conversion
Can someone please help me with the explanation for the log file generated
by mrtg? I understand that the first list the unix time stamp, current 'in'
counter in bytes, current 'out' counter in bytes. When this is graph, it is
converts to kb/s if needed to right? I am having a little trouble trying to
do the math for the following:
>From Log file:
1070050157 834213218 86673815
>From Graph
11:59 1254.8 kb/s 64.1 kb/s
Can someone please show me how does the conversion works? I need to
understand so that I can determine how to set the minimum bandwidth
threshold. Thank you in advance.
--
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
--
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