mrtg-logfile
This document provides a description of the
contents of the mrtg-2 logfile.
# 注释 :该文档描述了 MRTG
的日志文件
The logfile consists of two main
sections.
# 注释 :MRTG 的日志文件由两部分组成
-
- It stores the traffic counters from the most
recent run of mrtg.
# 注释 :地一部分是日志文件的第一行。它存储了 mrtg
最近一次运行时所获取到的数据
-
- Stores past traffic rate averates and maxima
at increassing intervals.
# 注释
:第二部分就是从第二行开始的全部其他内容。存储了过去的流量数据和最大值
The first number on each line is a unix time
stamp. It represents the number of seconds since 1970.
# 注释 :至于每一行的开头都是一个 timestamp
,可以通过 date --date "1970-01-01 xxx secs utc " 来转换为实际的时间
The first line has 3 numbers which
are:
# 注释 :mrtg
日志的第一行由3个数字组成
-
- 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.
# 注释 :第一个数字就是
timestamp
-
- The ``incoming bytes counter'' value.
# 注释
:第二个数字就是“输入”的值
-
-
- The ``outgoing bytes counter'' value.
# 注释
:第三个数字就是“输出”的值
The second and remaining lines of the file
contains 5 numbers which are:
# 注释
:从第行开始,每行就由5个数字组成
- A (1st column)
- 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.
# 注释 :第一行仍然是 timestamp 。不过随着时间的增加,
# 相邻两行记录的 timestamp 的差距从5分钟拉长到1天
-
This timestamp may be converted in OpenOffice
Calc or MS Excel by using the following formula
=(x+y)/86400+DATE(1970;1;1)
-
(instead of ``;'' it may be that you have to
use ``,'' this depends on the context and your locale settings)
-
you can also ask perl to help by
typing
perl -e 'print scalar localtime(x),"\n"'
-
x is the unix
timestamp and y is the offset in seconds from UTC. (Perl knows
y).
- B (2nd column)
- 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.
-
# 注释
:第2个数字表示每秒流入的流量(单位:字节),是通过计算当前行和上一行的 timestamp 差值来得出的
- C (3rd column)
- The average outgoing transfer rate in bytes
per second since the previous measurement.
# 注释
:第3个数字和第2个数字类似,但表示的是输出的平均
-
- 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 transfer rate seen during the
hour.
# 注释
:第4个数字表示当前记录和上一条记录之间的“最大流入(B)/秒” 。
-
- The maximum outgoing transfer rate in bytes
per second for the current interval.
# 注释
:第5个数字和第4个数字相似,但表示的是 “最大输入(B)/秒”
Butch Kemper <> and Tobias
Oetiker <>
Last Update: 09/06/06 by
阅读(589) | 评论(0) | 转发(0) |