File: logfile.html

package info (click to toggle)
mrtg 2.9.17-4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 5,140 kB
  • ctags: 1,517
  • sloc: perl: 22,688; ansic: 3,536; sh: 1,309; makefile: 319; php: 227; awk: 213; csh: 49; exp: 16
file content (126 lines) | stat: -rw-r--r-- 4,053 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<HTML>
<HEAD>
<TITLE>doc/logfile</TITLE>
<LINK REV="made" HREF="mailto:karrer@iis.ee.ethz.ch">
</HEAD>

<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#990200" VLINK="#006342"><P><IMG SRC="mrtg-l.png"><IMG SRC="mrtg-m.png"><IMG SRC="mrtg-r.gif"></P>

<A NAME="__index__"></A>
<!-- INDEX BEGIN -->
<!--

<UL>

	<LI><A HREF="#name">NAME</A></LI>
	<LI><A HREF="#synopsis">SYNOPSIS</A></LI>
	<LI><A HREF="#overview">OVERVIEW</A></LI>
	<LI><A HREF="#details">DETAILS</A></LI>
	<UL>

		<LI><A HREF="#the first line">The first Line</A></LI>
		<LI><A HREF="#the rest of the file">The rest of the File</A></LI>
	</UL>

	<LI><A HREF="#author">AUTHOR</A></LI>
</UL>
-->
<!-- INDEX END -->

<P>
<H1><A NAME="name">NAME</A></H1>
<P>logfile - description of the mrtg-2 logfile format</P>
<P>
<HR>
<H1><A NAME="synopsis">SYNOPSIS</A></H1>
<P>This document provides a description of the contents of
the mrtg-2 logfile.</P>
<P>
<HR>
<H1><A NAME="overview">OVERVIEW</A></H1>
<P>The logfile consists of two main sections. A very short one
at the beginning:</P>
<DL>
<DT><STRONG><A NAME="item_The_first_Line">The first Line</A></STRONG><BR>
<DD>
It stores the traffic counters from the most recent run of mrtg
<P></P>
<DT><STRONG><A NAME="item_The_rest_of_the_File">The rest of the File</A></STRONG><BR>
<DD>
Stores past traffic rate averates and maxima at increassing
intervals
<P></P></DL>
<P>The first number on each line is a unix time stamp. It represents
the number of seconds since 1970.</P>
<P>
<HR>
<H1><A NAME="details">DETAILS</A></H1>
<P>
<H2><A NAME="the first line">The first Line</A></H2>
<P>The first line has 3 numbers which are:</P>
<DL>
<DT><STRONG><A NAME="item_A">A (1st column)</A></STRONG><BR>
<DD>
A timestamp of when MRTG last ran for this interface.  The timestamp is the
number of non-skip seconds passed since the standard UNIX ``epoch'' of midnight
on 1st of January 1970 GMT.
<P></P>
<DT><STRONG><A NAME="item_B">B (2nd column)</A></STRONG><BR>
<DD>
The ``incoming bytes counter'' value.
<P></P>
<DT><STRONG><A NAME="item_C">C (3rd column)</A></STRONG><BR>
<DD>
The ``outgoing bytes counter'' value.
<P></P></DL>
<P>
<H2><A NAME="the rest of the file">The rest of the File</A></H2>
<P>The second and remaining lines of the file 5 numbers
which are:</P>
<DL>
<DT><STRONG>A (1st column)</STRONG><BR>
<DD>
The Unix timestamp for the point in time the data on this line is relevant.
Note that the interval between timestamps increases as you prograss through the
file. At first it is 5 minutes and at the end it is one day between two lines.
<P>This timestamp may be converted in EXCEL by using the following formula:</P>
<PRE>
 =(x+y)/86400+DATE(1970,1,1)</PRE>
<P>you can also ask perl to help by typing</P>
<PRE>
 perl -e 'print scalar localtime(x),&quot;\n&quot;'</PRE>
<P><STRONG>x</STRONG> is the unix timestamp and <STRONG>y</STRONG> is the offset in seconds
from UTC. (Perl knows <STRONG>y</STRONG>).</P>
<P></P>
<DT><STRONG>B (2nd column)</STRONG><BR>
<DD>
The average incoming transfer rate in bytes per second. This is valid
for the time between the A value of the current line and the A value of the
previous line.
<P></P>
<DT><STRONG>C (3rd column)</STRONG><BR>
<DD>
The average outgoing transfer rate in bytes per second since the previous
measurement.
<P></P>
<DT><STRONG><A NAME="item_D">D (4th column)</A></STRONG><BR>
<DD>
The maximum incoming transfer rate in bytes per second for the current
interval. This is calculated from all the updates which have occured in the
current interval. If the current interval is 1 hour, and updates have
occured every 5 minutes, it will be the biggest 5 minute transferrate seen
during the hour.
<P></P>
<DT><STRONG><A NAME="item_E">E (5th column)</A></STRONG><BR>
<DD>
The maximum outgoing transfer rate in bytes per second for the current interval.
<P></P></DL>
<P>
<HR>
<H1><A NAME="author">AUTHOR</A></H1>
<P>Butch Kemper &lt;<A HREF="mailto:kemper@bihs.net">kemper@bihs.net</A>&gt; and
Tobias Oetiker &lt;<A HREF="mailto:oetiker@ee.ethz.ch">oetiker@ee.ethz.ch</A>&gt;</P>

</BODY>

</HTML>