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