1MRTG-LOGFILE(1)                      mrtg                      MRTG-LOGFILE(1)
2
3
4

NAME

6       mrtg-logfile - description of the mrtg-2 logfile format
7

SYNOPSIS

9       This document provides a description of the contents of the mrtg-2 log‐
10       file.
11

OVERVIEW

13       The logfile consists of two main sections.
14
15       The first Line
16           It stores the traffic counters from the most recent run of mrtg.
17
18       The rest of the File
19           Stores past traffic rate averates and maxima at increassing inter‐
20           vals.
21
22       The first number on each line is a unix time stamp. It represents the
23       number of seconds since 1970.
24

DETAILS

26       The first Line
27
28       The first line has 3 numbers which are:
29
30       A (1st column)
31           A timestamp of when MRTG last ran for this interface.  The time‐
32           stamp is the number of non-skip seconds passed since the standard
33           UNIX "epoch" of midnight on 1st of January 1970 GMT.
34
35       B (2nd column)
36           The "incoming bytes counter" value.
37
38       C (3rd column)
39           The "outgoing bytes counter" value.
40
41       The rest of the File
42
43       The second and remaining lines of the file contains 5 numbers which
44       are:
45
46       A (1st column)
47           The Unix timestamp for the point in time the data on this line is
48           relevant.  Note that the interval between timestamps increases as
49           you prograss through the file. At first it is 5 minutes and at the
50           end it is one day between two lines.
51
52           This timestamp may be converted in OpenOffice Calc or MS Excel by
53           using the following formula
54
55            =(x+y)/86400+DATE(1970;1;1)
56
57           (instead of ";" it may be that you have to use "," this depends on
58           the context and your locale settings)
59
60           you can also ask perl to help by typing
61
62            perl -e 'print scalar localtime(x),"\n"'
63
64           x is the unix timestamp and y is the offset in seconds from UTC.
65           (Perl knows y).
66
67       B (2nd column)
68           The average incoming transfer rate in bytes per second. This is
69           valid for the time between the A value of the current line and the
70           A value of the previous line.
71
72       C (3rd column)
73           The average outgoing transfer rate in bytes per second since the
74           previous measurement.
75
76       D (4th column)
77           The maximum incoming transfer rate in bytes per second for the cur‐
78           rent interval. This is calculated from all the updates which have
79           occured in the current interval. If the current interval is 1 hour,
80           and updates have occured every 5 minutes, it will be the biggest 5
81           minute transfer rate seen during the hour.
82
83       E (5th column)
84           The maximum outgoing transfer rate in bytes per second for the cur‐
85           rent interval.
86

AUTHOR

88       Butch Kemper <kemper@bihs.net> and Tobias Oetiker <tobi@oetiker.ch>
89
90
91
922.16.2                            2008-05-16                   MRTG-LOGFILE(1)
Impressum