Part 1 software and environment required for cacti installation 1 this configuration is 2redhat for RedHat5.4 lab must install DevelopmentLibrariesDevelopmentTools & nb
Part 1
Install cacti
Required software and Environment
1 This configuration is used to experiment on RedHat5.4
2. Development Libraries must be installed in redhat.
Development Tools
X Window System and other development environments and some library files
3. Check whether the following software is installed, for example:
Php-5.1.6-23.2.el5_3
Php-devel-5.1.6-23.2.el5_3
Php-mysql-5.1.6-23.2.el5_3
Php-pdo-5.1.6-23.2.el5_3
Php-gd-5.1.6-23.2.el5_3
Php-snmp-5.1.6-23.2.el5 _
Mysql-5.0.77-3.el5
Mysql-devel-5.0.77-3.el5
Mysql-server-5.0.77-3.el5
Net-snmp-5.3.2.2-7.el5
Net-snmp-utils-5.3.2.2-7.el5
Net-snmp-devel-5.3.2.2-7.el5
Net-snmp-libs-5.3.2.2-7.el5
Libart_lgpl-devel-2.3.17-4
Libart_lgpl-2.3.17-4
4. After preparing the system environment, the required software packages include:
Cacti-0.8.7e.tar.gz
Cacti-spine-0.8.7e.tar.gz
Pango-1.17.5.tar.gz
Rrdtool-1.2.30.tar.gz
5. Install the source code package
Install pango-1.17.5.
# Tar xvf pango-1.17.5.tar.gz
# Cd pango-1.17.5.
#./Configure
# Make
# Make install
Rrdtool-1.2.30
# Tar zxvf rrdtool-1.2.30.tar.gz
# Cd rrdtool-1.2.30
#./Configure -- prefix =/usr/local/rrdtool
# Make
# Make install
Create a link for the rrdtool binary file to/usr/local/bin cacti to find the required rrdtool in this directory by default.
# Ln-s/usr/local/rrdtool/bin/*/usr/local/bin/
Add the library file of rrdtool to the search path of the system library file.
# Vim/etc/ld. so. conf
Add
/Usr/local/rrdtool/lib
And save
Execute Command
# Ldconfig-v
6. Configure the PHP running environment
First, make sure that php can add the required system modules. Run the following command to view the system modules loaded by php.
# Php-m
Make sure that the modules loaded by php Include mysql, snmp, xml, session, socket, LDAP (this module is only authenticated by LDAP), and GD (used when cacti plug-ins are configured ).
Make sure that php can load the required modules. In/etc/php. ini, ensure the following options:
Extension_dir =/usr/lib/php/modules
File_uploads = on (the option used when importing the cacti template)