RRDtool Modify Watermark Logo

Source: Internet
Author: User
Tags cairo rrdtool rpmbuild

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.