Ubuntu and CentOS installation rrdtool--cacti pre-built skills

Source: Internet
Author: User
Tags rrdtool perl script

Installing Pre-requisites

Note that RRDTool 1.0.x versions included all dependancies, but 1.2.x versions require you to install these dependancies b Efore installing RRDTool.

For RedHat 9, you'll need to install the following RPMs from the RH9 CD:

    • libart_lgpl-2.3.11-2.i386.rpm
    • libart_lgpl-devel-2.3.11-2.i386.rpm
    • zlib-1.1.4-8.i386.rpm
    • zlib-devel-1.1.4-8.i386.rpm
    • libpng-1.2.2-16.i386.rpm
    • libpng-devel-1.2.2-16.i386.rpm
    • freetype-2.1.3-6.i386.rpm
    • freetype-devel-2.1.3-6.i386.rpm

You'll also need to install Cgilib-devel, and a RH9 RPM for Cgi-lib-devel can is found on the Cgilib RPM packages page .

Each of the above RPMs can is installed using the following syntax:

rpmname.rpm



Installing RRDTool on Ubuntu
On Ubuntu distributions of Linux, RRDTool can is installed by running the following:

Apt-get Install Librrds-perl RRDtool

msnually installing RRDTool from Source

To manually install RRDTool from the source code, SCP the tarball into the /usr/src directory on your Linux box. From a command prompt, change into the /usr/src directory, and Un-tar the tarball:

CD/USR/SRCTAR-XZVF rrdtool-1.2.12.tar.gz


Change into the newly created directory:

CD rrdtool-1.2.12


Compile and install RRDTool:

./configure--disable-tclmakemake Install


TCL is disabled, as compilation of some of the TCL components for RRDTool 1.2.12 would otherwise fail on RedHat 9.
Run ./configure--help For more information on configuration options.

The default installation is/usr/local/rrdtool-version, so make some symbolic links to the executables:

Ln-sf/usr/local/rrdtool-1.2.12/bin/rrdtool/usr/bin/rrdtoolln-sf/usr/local/rrdtool-1.2.12/bin/rrdupdate/usr/bin /rrdupdateln-sf/usr/local/rrdtool-1.2.12/bin/rrdcgi/usr/bin/rrdcgi


The RRDTool Perl Library simplifies things when using RRDTool from a Perl script, so to compile and install the Perl libra Ry for RRDTool:

Make Site-perl-install



Creating Data Directories for RRDTool
Create a directory for RRDTool databases, and a directory for the web images which it ' ll generate:

Mkdir/var/lib/rrdmkdir/var/www/html/rrdtool

Ubuntu and CentOS installation rrdtool--cacti pre-built skills

Related Article

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.