cactiez/cacti修改rrdtool绘图的logo

2017-5-30 飞火科技 技术文章

安装依赖包


yum install –y  cairo-devel freetype-devel gcc-c++ glib2-devel gettext-devel groff intltool libpng-devel libxml2-devel lua-devel openssl-devel pango-devel python-devel  ruby ruby-devel tcl-devel tk-devel xulrunner-devel zlib-devel cairo gettext glib2 libxml2 lua openssl perl pango python ruby xorg-x11-fonts-Type1 zlib perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker
下载对应版本的rrdtool http://oss.oetiker.ch/rrdtool/pub/?M=D 下载对应版本 解压 编辑
vi /src/rrd_graph.c
搜索logo
修改下图所示部分 编译
./configure --prefix=/usr/local/rrdtool --disable-python --disable-tcl
make && make install && ln -s /usr/local/rrdtool/bin/* /usr/local/bin/
效果如下

Powered by NOC.IM     12.63ms