RRDtool全稱Round Robin Database Tool,是一款用來處理定量數(shù)據(jù)的開源高性能數(shù)據(jù)庫,根據(jù)時間這條精準線路,來通過點點對應,將數(shù)據(jù)繪制成例圖的數(shù)據(jù)庫工具,對于科學實驗、數(shù)據(jù)分析等等需要一定繪圖要求的行業(yè),比較有幫助! ![]() RRDtool介紹RRDtool 代表 “Round Robin Database tool” ,作者同時也是 MRTG 軟件的發(fā)明人。 所謂的“Round Robin” 其實是一種存儲數(shù)據(jù)的方式,使用固定大小的空間來存儲數(shù)據(jù),并有一個指針指向最新的數(shù)據(jù)的位置。我們可以把用于存儲數(shù)據(jù)的數(shù)據(jù)庫的空間看成一個圓,上面有很多刻度。這些刻度所在的位置就代表用于存儲數(shù)據(jù)的地方。所謂指針,可以認為是從圓心指向這些刻度的一條直線。指針會隨著數(shù)據(jù)的讀寫自動移動。要注意的是,這個圓沒有起點和終點,所以指針可以一直移動,而不用擔心到達終點后就無法前進的問題。在一段時間后,當所有的空間都存滿了數(shù)據(jù),就又從頭開始存放。這樣整個存儲空間的大小就是一個固定的數(shù)值。所以RRDtool 就是使用類似的方式來存放數(shù)據(jù)的工具, RRDtool 所使用的數(shù)據(jù)庫文件的后綴名是'.rrd。 ·首先 RRDtool 存儲數(shù)據(jù),扮演了一個后臺工具的角色。但同時 RRDtool 又允許創(chuàng)建圖表,這使得RRDtool看起來又像是前端工具。其他的數(shù)據(jù)庫只能存儲數(shù)據(jù),不能創(chuàng)建圖表。 ·RRDtool 的每個 rrd 文件的大小是固定的,而普通的數(shù)據(jù)庫文件的大小是隨著時間而增加的。 其他數(shù)據(jù)庫只是被動的接受數(shù)據(jù), RRDtool 可以對收到的數(shù)據(jù)進行計算,例如前后兩個數(shù)據(jù)的變化程度(rate of change),并存儲該結果。 ·RRDtool 要求定時獲取數(shù)據(jù),其他數(shù)據(jù)庫則沒有該要求。如果在一個時間間隔內(nèi)(heartbeat)沒有收到值,則會用 UNKN (unknow)代替,其他數(shù)據(jù)庫則不會這樣。 ![]() RRDtool安裝說明1.安裝yum源 [root@node1 ~]# rpm -ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm [root@node1 ~]# rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm 2.同步時間 [root@node1 ~]# ntpdate 202.120.2.101 3.下載rrdtool的RPM包 [root@node1 ~]# wget ftp://195.220.108.108/linux/centos/6.4/os/x86_64/Packages/rrdtool-1.3.8-6.el6.x86_64.rpm 4.yum安裝rrdtool [root@node1 ~]# yum -y localinstall --nogpgcheck rrdtool-1.3.8-6.el6.x86_64.rpm 5.查看一下安裝文件 [root@node1 ~]# rpm -qa | grep rrdtool rrdtool-1.3.8-6.el6.x86_64 [root@node1 ~]# rpm -ql rrdtool /usr/bin/rrdcgi /usr/bin/rrdtool#命令行工具 /usr/bin/rrdupdate /usr/lib64/librrd.so.4#下面是庫文件 /usr/lib64/librrd.so.4.0.7 /usr/lib64/librrd_th.so.4 /usr/lib64/librrd_th.so.4.0.7 /usr/share/man/man1/bin_dec_hex.1.gz#下面是幫助文檔 /usr/share/man/man1/cdeftutorial.1.gz /usr/share/man/man1/rpntutorial.1.gz /usr/share/man/man1/rrd-beginners.1.gz /usr/share/man/man1/rrdbuild.1.gz /usr/share/man/man1/rrdcgi.1.gz /usr/share/man/man1/rrdcreate.1.gz /usr/share/man/man1/rrddump.1.gz /usr/share/man/man1/rrdfetch.1.gz /usr/share/man/man1/rrdfirst.1.gz /usr/share/man/man1/rrdgraph.1.gz /usr/share/man/man1/rrdgraph_data.1.gz /usr/share/man/man1/rrdgraph_examples.1.gz /usr/share/man/man1/rrdgraph_graph.1.gz /usr/share/man/man1/rrdgraph_rpn.1.gz /usr/share/man/man1/rrdinfo.1.gz /usr/share/man/man1/rrdlast.1.gz /usr/share/man/man1/rrdlastupdate.1.gz /usr/share/man/man1/rrdresize.1.gz /usr/share/man/man1/rrdrestore.1.gz /usr/share/man/man1/rrdthreads.1.gz /usr/share/man/man1/rrdtool.1.gz /usr/share/man/man1/rrdtune.1.gz /usr/share/man/man1/rrdtutorial.1.gz /usr/share/man/man1/rrdupdate.1.gz /usr/share/man/man1/rrdxport.1.gz /usr/share/rrdtool 6.查看一下命令行工具 [root@node1 ~]# rrdtool -h RRDtool 1.3.8 Copyright 1997-2009 by Tobias Oetiker
Compiled Aug 21 2010 10:57:18 Usage: rrdtool [options]command command_options Valid commands: create, update, updatev, graph, graphv, dump, restore, last, lastupdate, 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 moreinformation readthe RRD manpages RRDtool 1.7.2 2019-05-27 Bug修復 *更新了Makefile,以將所有需要的文件正確地包含到發(fā)行版tar中 *清理了編譯器警告
*在MinGW環(huán)境中改進的編譯
*使用rrdcached
*修復rrdtool xport 的邊界處理,文檔編制和檢查 *修復了gprint中json / xml
*優(yōu)化的PDP計算
系統(tǒng)軟件一般是在計算機系統(tǒng)購買時隨機攜帶的,也可以根據(jù)需要另行安裝。 |
1深度技術win10正式版ghost(32位)旗艦......
2番茄花園win10 X86 ghost 標準通......
3番茄花園Win10_Ghost Win10 64......
4雨林木風 GHOST WIN10 X64 快速裝......
5深度技術GHOST WIN10 X64 尊貴專業(yè)......
6筆記本W(wǎng)in10系統(tǒng) 64位官方正式版2023年......
7筆記本win10正式版ghost(32位)旗艦免......
8雨林木風win10(32位)ghost 修正專業(yè)......