|
Packit |
667938 |
MRTG-LOGFILE(1) mrtg MRTG-LOGFILE(1)
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
N?NA?AM?ME?E
|
|
Packit |
667938 |
mrtg-logfile - description of the mrtg-2 logfile format
|
|
Packit |
667938 |
|
|
Packit |
667938 |
S?SY?YN?NO?OP?PS?SI?IS?S
|
|
Packit |
667938 |
This document provides a description of the contents of the mrtg-2
|
|
Packit |
667938 |
logfile.
|
|
Packit |
667938 |
|
|
Packit |
667938 |
O?OV?VE?ER?RV?VI?IE?EW?W
|
|
Packit |
667938 |
The logfile consists of two main sections.
|
|
Packit |
667938 |
|
|
Packit |
667938 |
The first Line
|
|
Packit |
667938 |
It stores the traffic counters from the most recent run of mrtg.
|
|
Packit |
667938 |
|
|
Packit |
667938 |
The rest of the File
|
|
Packit |
667938 |
Stores past traffic rate averates and maxima at increassing
|
|
Packit |
667938 |
intervals.
|
|
Packit |
667938 |
|
|
Packit |
667938 |
The first number on each line is a unix time stamp. It represents the
|
|
Packit |
667938 |
number of seconds since 1970.
|
|
Packit |
667938 |
|
|
Packit |
667938 |
D?DE?ET?TA?AI?IL?LS?S
|
|
Packit |
667938 |
T?Th?he?e f?fi?ir?rs?st?t L?Li?in?ne?e
|
|
Packit |
667938 |
The first line has 3 numbers which are:
|
|
Packit |
667938 |
|
|
Packit |
667938 |
A (1st column)
|
|
Packit |
667938 |
A timestamp of when MRTG last ran for this interface. The
|
|
Packit |
667938 |
timestamp is the number of non-skip seconds passed since the
|
|
Packit |
667938 |
standard UNIX "epoch" of midnight on 1st of January 1970 GMT.
|
|
Packit |
667938 |
|
|
Packit |
667938 |
B (2nd column)
|
|
Packit |
667938 |
The "incoming bytes counter" value.
|
|
Packit |
667938 |
|
|
Packit |
667938 |
C (3rd column)
|
|
Packit |
667938 |
The "outgoing bytes counter" value.
|
|
Packit |
667938 |
|
|
Packit |
667938 |
T?Th?he?e r?re?es?st?t o?of?f t?th?he?e F?Fi?il?le?e
|
|
Packit |
667938 |
The second and remaining lines of the file contains 5 numbers which
|
|
Packit |
667938 |
are:
|
|
Packit |
667938 |
|
|
Packit |
667938 |
A (1st column)
|
|
Packit |
667938 |
The Unix timestamp for the point in time the data on this line is
|
|
Packit |
667938 |
relevant. Note that the interval between timestamps increases as
|
|
Packit |
667938 |
you progress through the file. At first it is 5 minutes and at the
|
|
Packit |
667938 |
end it is one day between two lines.
|
|
Packit |
667938 |
|
|
Packit |
667938 |
This timestamp may be converted in OpenOffice Calc or MS Excel by
|
|
Packit |
667938 |
using the following formula
|
|
Packit |
667938 |
|
|
Packit |
667938 |
=(x+y)/86400+DATE(1970;1;1)
|
|
Packit |
667938 |
|
|
Packit |
667938 |
(instead of ";" it may be that you have to use "," this depends on
|
|
Packit |
667938 |
the context and your locale settings)
|
|
Packit |
667938 |
|
|
Packit |
667938 |
you can also ask perl to help by typing
|
|
Packit |
667938 |
|
|
Packit |
667938 |
perl -e 'print scalar localtime(x),"\n"'
|
|
Packit |
667938 |
|
|
Packit |
667938 |
x?x is the unix timestamp and y?y is the offset in seconds from UTC.
|
|
Packit |
667938 |
(Perl knows y?y).
|
|
Packit |
667938 |
|
|
Packit |
667938 |
B (2nd column)
|
|
Packit |
667938 |
The average incoming transfer rate in bytes per second. This is
|
|
Packit |
667938 |
valid for the time between the A value of the current line and the
|
|
Packit |
667938 |
A value of the previous line.
|
|
Packit |
667938 |
|
|
Packit |
667938 |
C (3rd column)
|
|
Packit |
667938 |
The average outgoing transfer rate in bytes per second since the
|
|
Packit |
667938 |
previous measurement.
|
|
Packit |
667938 |
|
|
Packit |
667938 |
D (4th column)
|
|
Packit |
667938 |
The maximum incoming transfer rate in bytes per second for the
|
|
Packit |
667938 |
current interval. This is calculated from all the updates which
|
|
Packit |
667938 |
have occured in the current interval. If the current interval is 1
|
|
Packit |
667938 |
hour, and updates have occured every 5 minutes, it will be the
|
|
Packit |
667938 |
biggest 5 minute transfer rate seen during the hour.
|
|
Packit |
667938 |
|
|
Packit |
667938 |
E (5th column)
|
|
Packit |
667938 |
The maximum outgoing transfer rate in bytes per second for the
|
|
Packit |
667938 |
current interval.
|
|
Packit |
667938 |
|
|
Packit |
667938 |
A?AU?UT?TH?HO?OR?R
|
|
Packit |
667938 |
Butch Kemper <kemper@bihs.net> and Tobias Oetiker <tobi@oetiker.ch>
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
2.17.7 2018-07-13 MRTG-LOGFILE(1)
|