Our company is installing the Cactifans cacti system.
Because the company needs to change all the graphic watermark in cacti to the company logo
So this record changes the logo process
=============================
1, first view the RRDtool version on the cacti
Download the corresponding RRDtool src.rpm package
Yes: http://pkgs.repoforge.org/rrdtool/
I download rrdtool-1.4.7-1.rf.src.rpm here to recompile after download is complete
I'm here to re-build a CentOS system to build first install the Rpmbuild compilation environment
Yum Install rpm-build gcc make–y
Then download rrdtool-1.4.7-1.rf.src.rpm
wget http://pkgs.repoforge.org/rrdtool/rrdtool-1.4.7-1.rf.src.rpm
Unpack the src.rpm package rpm-i rrdtool-1.4.7-1.rf.src.rpm See the dependencies required for compiling RRDtool cat Rrdtool.spec
Install all dependent packages
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
After the installation is complete
CD Rpmbuild/sources/tar zxvf RRDTOOL-1.4.7CD rrdtool-1.4.7/src/vi rrd_graph.c
Find logo characters
Change the following to the text you want to display, and then save to quit repackaging
Cd/root/rpmbuild/sources/tar ZCVF rrdtool-1.4.7.tar.gz rrdtool-1.4.7
To compile after packaging
Cd.. /specs/rpmbuild-ba Rrdtool.spec
Wait for compilation to complete
The/root/rpmbuild/rpms/x86_64 in the
rrdtool-1.4.7-1.el6.x86_64.rpm
perl-rrdtool-1.4.7-1.el6.x86_64.rpm
Two files copied to Cactifans server
Run on the server after entering the file directory that you just stored
RPM-UVH *--nodeps–force
Force Update RRDtool
Then check to see if the update is complete on the cacti
This article is from the "www.fenei.com" blog, make sure to keep this source http://453861.blog.51cto.com/443861/1718978
RRDtool Modify Watermark Logo