存档

文章标签 ‘rrdtool’

使用rrdtoo resize修改已有rrd文件的数据量

2013年12月11日 评论已被关闭

Cacti中超过30天的数据精度明显下降,导致自己对交换机画出来的数据与IDC的数据对比存在一定的差异(IDC提供的数据要高一些,因为精度不如人家,于是表面上强硬,交钱时却只能按事实说话。)

rrd文件格式


rrdtool create 2hei_netflow.rrd \
--start `date +%s` \
--step 300 \
DS:bjidc:COUNTER:600:U:U \
DS:gzidc:COUNTER:600:U:U \
DS:shidc:COUNTER:600:U:U \
DS:szidc:COUNTER:600:U:U \
RRA:AVERAGE:0.5:1:8640 \
RRA:AVERAGE:0.5:4:4320 \
RRA:AVERAGE:0.5:24:2160 \
RRA:AVERAGE:0.5:288:730

说明:


(5分钟 * 1 * 8640) /(60(分钟) * 24(小时)) = 30天
(5分钟 * 4 * 4320) /(60(分钟) * 24(小时)) = 60天
(5分钟 * 24 * 2160)/(60(分钟) * 24(小时)) = 180天
(5分钟 * 288 * 730)/(60(分钟) * 24(小时)) = 730天

阅读全文…

分类: OpenSource 标签:

使Cacti流量图超过80M的解决方法

2013年4月3日 评论已被关闭

Before:

# /usr/local/rrdtool/bin/rrdtool info /var/www/html/rra/71/2995.rrd
ds[traffic_in].min = 0.0000000000e+00
ds[traffic_in].max = 1.0000000000e+07
ds[traffic_out].min = 0.0000000000e+00
ds[traffic_out].max = 1.0000000000e+07

阅读全文…

分类: linux 标签: ,

Your intltool is too old. You need intltool 0.35.0 or later

2009年8月5日 评论已被关闭

编译rrdtool时,提示这样的错误:
checking for intltool >= 0.35.0… 0.31.2 found
configure: error: Your intltool is too old.  You need intltool 0.35.0 or later.

解决办法如下:
wget http://ftp.gnome.org/pub/gnome/sources/intltool/0.40/intltool-0.40.6.tar.gz
tar zxvf intltool-0.40.6.tar.gz
cd intltool-0.40.6
./configure
make && make install

编译之后有个地方比较搞笑,原来作者也挺有幽默感的哦!
SOLARIS HINT: if you want to build the Perl module for the native Perl (the one shipping with Solaris) you will need the Sun Forte compiler installed on your box or you have to hand-tune bindings/perl-shared/Makefile while building!

Now go to $INSTALL_DIR/share/rrdtool/examples/ and run them to see if your build has been successful.

checking in… and out again
ordering CD from http://tobi.oetiker.ch/wish …. just kidding 😉
Config is DONE!

          With MMAP IO: yes
      Build rrd_getopt: no
       Static programs: no
          Perl Modules: perl_piped perl_shared
           Perl Binary: /usr/bin/perl
          Perl Version: 5.8.5
          Perl Options: PREFIX=$(DESTDIR)/usr/local/rrdtool-1.3.8 LIB=$(DESTDIR)/usr/local/rrdtool-1.3.8/lib/perl/5.8.5
          Ruby Modules:
           Ruby Binary: no
          Ruby Options: sitedir=$(DESTDIR)/usr/local/rrdtool-1.3.8/lib/ruby
    Build Tcl Bindings: no
 Build Python Bindings: yes
          Build rrdcgi: yes
       Build librrd MT: yes
     Link with libintl: yes

             Libraries: -lxml2 -lcairo -lcairo -lcairo -lm  -lcairo -lfreetype -lz -lfontconfig -lpng12 -lpixman-1   -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lfreetype -lz -lfontconfig -lpng12 -lpixman-1 

Type ‘make’ to compile the software and use ‘make install’ to
install everything to: /usr/local/rrdtool-1.3.8.

       … that wishlist is NO JOKE. If you find RRDtool useful
make me happy. Go to http://tobi.oetiker.ch/wish and
place an order.

分类: OpenSource 标签: