[root@dns1 rrdtool-1.2.14]# /usr/local/rrdtool-1.2.14/bin/rrdtool
RRDtool 1.2.14 Copyright 1997-2006 by Tobias Oetiker <tobi@oetiker.ch>
Compiled Oct 14 2006 10:55:28
Usage: rrdtool [options] command command_options
Valid commands: create, update, updatev, graph, dump, restore,
last, first, info, fetch, tune, resize, xport
RRDtool is distributed under the Terms of the GNU General
Public License Version 2. (www.gnu.org/copyleft/gpl.html)
For more information read the RRD manpages
[root@dns1 rrdtool-1.2.14]#
Values = 300, 600, 900, 1200 # 假设 RRDtool 收到4个值,分别是300,600,900,1200
Step = 300 seconds # step 为 300
COUNTER = 1,1, 1,1 # (300-0)/300,(600-300)/300,(900-600)/300,(1200-900)/300 ,所以结果为 1,1,1,1
DERIVE = 1,1,1,1 # 同上
ABSOLUTE = 1,2,3,4 # (300-0)/300,(600-0)/300 , (900-0)/300, (1200-0)/300,所以结果为 1,2,3,4
GAUGE = 300,600,900,1200 # 300 , 600 ,900 ,1200 不做运算,直接存入数据库
The xfiles factor defines what part of a consolidation interval may be made up from *UNKNOWN* data while
the consolidated value is still regarded as known. It is given as the ratio of allowed *UNKNOWN* PDPs to
the number of PDPs in the interval. Thus, it ranges from 0 to 1 (exclusive)
A) 如果 eth0.rrd 在5分钟内收到不止1个更新,结果会怎样?提示:用 updatev 就可以看出来了
B) 如果过了 eth0.rrd 在5分钟内没有收到脚本返回的值,是否立即就用 UNKNOWN 作为 PDP 的值?
C) 参考上面的例子,搞清楚 heartbeat 的含义
D) 在搞清楚 heartbeat 后,再想一下 heartbeat 和 step 之间的关系。
First it makes sure that the RRA covers as much of the graphing time frame as possible. Second it looks at the resolution of the
RRA compared to the resolution of the graph. It tries to find one which has the same or higher better resolution. With the ``-r''
option you can force RRDtool to assume a different resolution than the one calculated from the pixel width of the graph.
By default, rrdtool graph calculates the width of one pixel in the time domain and tries to get data from an RRA with that resolution.
With the step option you can alter this behaviour. If you want rrdtool graph to get data at a one-hour resolution from the RRD, set
step to 3'600. Note: a step smaller than one pixel will silently be ignored
>
DS:eth0_out:COUNER:600:0:12500000 \ # 如果没有最小值/最大值,可以用 U 代替,例如 U:U
原帖由 ustctapper 于 2007-3-21 11:26 发表于 26楼
我直接拷贝simhei.ttf字体文件到$HOME,但按照你的办法使用,汉字并不显示出来,而不是乱码。
ubuntu edgy 2.6.17
rrdtool 1.2.11-0.6ubuntu1
原帖由 springwind426 于 2007-3-21 21:59 发表于 27楼
1.2.11要显示汉字的话,需要打补丁。
欢迎光临 Chinaunix (http://bbs.chinaunix.net/) | Powered by Discuz! X3.2 |