RRDTool是由Tobias Oetiker开发的自由软件,它使用RRD(Round Robin Database)作为存储格式,Round robin是一种处理定量数据、以及当前元素指针的技术。RRDTool主要用来跟踪对象的变化情况,生成这些变化的走势图。

stream-pop

07/09/10释放的cacti-0.8.7g已支持rrdtool-1.4X
我选择05-Jul-2010 最新释放的rrdtool-1.4.4.tar.gz
系统为centos 5.5,已安装yum

安装支持包
yum install libxml2-devel libpng-devel pkg-config glib pixman pango pango-devel freetype freetype-devel fontconfig cairo cairo-devel libart_lgpl libart_lgpl-devel

安装rrdtool

  1. wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.4.4.tar.gz
  2. tar zxvf rrdtool-1.4.4.tar.gz
  3. cd rrdtool-1.4.4
  4. ./configure --prefix=/usr/local/rrdtool-1.4.4 --disable-tcl --disable-python
  1. ordering CD from http://tobi.oetiker.ch/wish .... just kidding ;-)
  2.  
  3. ----------------------------------------------------------------
  4. Config is DONE!
  5.  
  6.           With MMAP IO: yes
  7.       Build rrd_getopt: no
  8.        Static programs: no
  9.           Perl Modules: perl_piped perl_shared
  10.            Perl Binary: /usr/bin/perl
  11.           Perl Version: 5.8.8
  12.           Perl Options: PREFIX=/usr/local/rrdtool-1.4.4 LIB=/usr/local/rrdtool-1.4.4/lib/perl/5.8.8
  13.           Ruby Modules:
  14.            Ruby Binary: no
  15.           Ruby Options: sitedir=/usr/local/rrdtool-1.4.4/lib/ruby
  16.     Build Lua Bindings: no
  17.     Build Tcl Bindings: no
  18.  Build Python Bindings: no
  19.           Build rrdcgi: yes
  20.        Build librrd MT: yes
  21.            Use gettext: yes
  22.            With libDBI: no
  23.  
  24.              Libraries: -lxml2 -lcairo -lcairo -lcairo -lm  -lcairo -lpng12   -lglib-2.0   -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 
  25.  
  26. Type 'make' to compile the software and use 'make install' to
  27. install everything to: /usr/local/rrdtool-1.4.4.

出现下面信息可能缺少支持包

  1. configure: error: Please fix the library issues listed above and try again.
  1. make
  2. make install
  3.  
  4. ln -s /usr/local/rrdtool-1.4.4 /usr/local/rrdtool
  5. /usr/local/rrdtool/bin/rrdtool -v
  1. RRDtool 1.4.4  Copyright 1997-2010 by Tobias Oetiker <tobi@oetiker.ch>
  2.                Compiled Jul 22 2010 11:18:48
  3.  
  4. Usage: rrdtool [options] command command_options
  5. Valid commands: create, update, updatev, graph, graphv,  dump, restore,
  6.                 last, lastupdate, first, info, fetch, tune,
  7.                 resize, xport, flushcached
  8.  
  9. RRDtool is distributed under the Terms of the GNU General
  10. Public License Version 2. (www.gnu.org/copyleft/gpl.html)
  11.  
  12. For more information read the RRD manpages