install cacti on rhel-5/centos-5

Hopefully this short and simple how-to will be useful to someone. There may be inaccuracies so please feel free to let me know if you see anything that needs correcting.

Download all necessary packages

yum install httpd php php-mysql php-snmp mysql mysql-server net-snmp net-snmp-utils rrdtool libart_lgpl -y

rrd-tool can be obtained from dag (http://dag.wieers.com/rpm/packages/rrdtool/perl-rrdtool-1.2.23-1.el5.rf.x86_64.rpm and http://dag.wieers.com/rpm/packages/rrdtool/rrdtool-1.2.23-1.el5.rf.x86_64.rpm for 64-bit) if it is not in your repos.

Verify that the required daemons are started and configured to start on boot

chkconfig httpd on
chkconfig snmpd on
chkconfig mysqld on
/etc/init.d/httpd restart
/etc/init.d/mysqld restart
/etc/init.d/snmpd restart

Configure mysql daemon to listen only on localhost (optional)

vi /etc/my.cnf
add ‘bind=127.0.0.1′
restart mysql ‘/etc/init.d/mysqld restart’
confirm that it is listening on localhost ‘netstat -ntlp | grep :3306′

Configure mysql users

mysql -u root
set mysql password for root user
use mysql;
update user set Password=PASSWORD(‘selectapw’) where User=’root’;
create cacti database
create database cacti;
create cacti user and grant them permissions to the cacti database
grant all privileges on cacti.* to ‘cacti’@'localhost’ identified by ‘selectpw’ with grant option;
apply all new permission changes
flush privileges;
or you can simply restart mysql

Get and extract the cacti tarball

cd /var/www/html/
wget http://www.cacti.net/downloads/cacti-0.8.7d.tar.gz
tar -xvzf cacti-0.8.7d.tar.gz

Create symbolic link and change the owernship to apache

ln -s /var/www/html/cacti-0.8.7d.tar.gz
chown -R apache:apache /var/www/html/cacti

Create the necessary cacti tables

mysql -u root -p cacti < /var/www/html/cacti/cacti.sql

Create cacti user and create the poller cron

useradd cacti
passwd cacti
crontab -e -u cacti
insert `*/5 * * * * php /var/www/html/cacti/poller.php > /dev/null 2>&1` and save `:wq`

Change ownership of rra and log to cacti

chown -R cacti /var/www/html/cacti/rra/ /var/www/html/cacti/log/

Populate the cacti config with mysql information

vi /var/www/html/cacti/include/config.php
update the below accordingly
$database_type = “mysql”;
$database_default = “cacti”;
$database_hostname = “127.0.0.1″;
$database_username = “cacti”;
$database_password = “createdpass”;

Point your web browser to `http://your-server/cacti/` and follow the on-screen instructions

accept defaults
when prompted the default usernamd and password is admin

Current repolist
repo id repo name status
addons CentOS-5 – Addons enabled : 0
base CentOS-5 – Base enabled : 3,272
centosplus CentOS-5 – Plus enabled : 63
contrib CentOS-5 – Contrib enabled : 0
epel Epel from fedora enabled : 4,970
extras CentOS-5 – Extras enabled : 266
updates CentOS-5 – Updates enabled : 25

For the sake of convenience I have also included the raw output of a complete install below…

[root@testme ~]# yum repolist
Loaded plugins: fastestmirror
Determining fastest mirrors
* addons: hpc.arc.georgetown.edu
* base: mirrors.cmich.edu
* extras: updates.interworx.info
* updates: updates.interworx.info
addons                                                                                                                                                                                                                              |  951 B     00:00
addons/primary                                                                                                                                                                                                                      |  204 B     00:00
base                                                                                                                                                                                                                                | 2.1 kB     00:00
base/primary_db                                                                                                                                                                                                                     | 2.1 MB     00:03
extras                                                                                                                                                                                                                              | 2.1 kB     00:00
extras/primary_db                                                                                                                                                                                                                   | 226 kB     00:00
updates                                                                                                                                                                                                                             | 1.9 kB     00:00
updates/primary_db                                                                                                                                                                                                                  | 508 kB     00:00
repo id                                                                                                          repo name                                                                                                                   status
addons                                                                                                           CentOS-5 – Addons                                                                                                           enabled:     0
base                                                                                                             CentOS-5 – Base                                                                                                             enabled: 3,434
extras                                                                                                           CentOS-5 – Extras                                                                                                           enabled:   298
updates                                                                                                          CentOS-5 – Updates                                                                                                          enabled:   541
repolist: 4,273
[root@testme ~]# cat /etc/redhat-release; uname -m
CentOS release 5.4 (Final)
x86_64
[root@testme ~]# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-3.noarch.rpm
Retrieving http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-3.noarch.rpm
warning: /var/tmp/rpm-xfer.zXdqQj: Header V3 DSA signature: NOKEY, key ID 217521f6
Preparing…                ########################################### [100%]
1:epel-release           ########################################### [100%]
[root@testme ~]# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: hpc.arc.georgetown.edu
* base: mirrors.cmich.edu
* epel: mirrors.rit.edu
* extras: updates.interworx.info
* updates: updates.interworx.info
epel                                                                                                                                                                                                                                | 3.4 kB     00:00
epel/primary_db                                                                                                                                                                                                                     | 3.3 MB     00:00
repo id                                                                                            repo name                                                                                                                                 status
addons                                                                                             CentOS-5 – Addons                                                                                                                         enabled:     0
base                                                                                               CentOS-5 – Base                                                                                                                           enabled: 3,434
epel                                                                                               Extra Packages for Enterprise Linux 5 – x86_64                                                                                            enabled: 5,675
extras                                                                                             CentOS-5 – Extras                                                                                                                         enabled:   298
updates                                                                                            CentOS-5 – Updates                                                                                                                        enabled:   541
repolist: 9,948
[root@testme ~]# yum install httpd php php-mysql php-snmp mysql mysql-server net-snmp net-snmp-utils rrdtool libart_lgpl -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: hpc.arc.georgetown.edu
* base: mirrors.cmich.edu
* epel: mirrors.rit.edu
* extras: updates.interworx.info
* updates: updates.interworx.info
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package httpd.x86_64 0:2.2.3-43.el5.centos set to be updated
addons/filelists                                                                                                                                                                                                                    |  197 B     00:00
base/filelists_db                                                                                                                                                                                                                   | 4.0 MB     00:10
epel/filelists_db                                                                                                                                                                                                                   | 4.5 MB     00:01
extras/filelists_db                                                                                                                                                                                                                 | 220 kB     00:00
updates/filelists_db                                                                                                                                                                                                                | 1.4 MB     00:00
–> Processing Dependency: /etc/mime.types for package: httpd
–> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd
–> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd
—> Package libart_lgpl.i386 0:2.3.17-4 set to be updated
—> Package libart_lgpl.x86_64 0:2.3.17-4 set to be updated
—> Package mysql.i386 0:5.0.77-4.el5_5.3 set to be updated
–> Processing Dependency: perl(DBI) for package: mysql
–> Processing Dependency: libncurses.so.5 for package: mysql
—> Package mysql.x86_64 0:5.0.77-4.el5_5.3 set to be updated
—> Package mysql-server.x86_64 0:5.0.77-4.el5_5.3 set to be updated
–> Processing Dependency: perl-DBD-MySQL for package: mysql-server
—> Package net-snmp.x86_64 1:5.3.2.2-9.el5_5.1 set to be updated
–> Processing Dependency: net-snmp-libs = 1:5.3.2.2-9.el5_5.1 for package: net-snmp
–> Processing Dependency: libnetsnmpmibs.so.10()(64bit) for package: net-snmp
–> Processing Dependency: libnetsnmpagent.so.10()(64bit) for package: net-snmp
–> Processing Dependency: libnetsnmp.so.10()(64bit) for package: net-snmp
–> Processing Dependency: libsensors.so.3()(64bit) for package: net-snmp
–> Processing Dependency: libnetsnmptrapd.so.10()(64bit) for package: net-snmp
–> Processing Dependency: libnetsnmphelpers.so.10()(64bit) for package: net-snmp
—> Package net-snmp-utils.x86_64 1:5.3.2.2-9.el5_5.1 set to be updated
—> Package php.x86_64 0:5.1.6-27.el5 set to be updated
–> Processing Dependency: php-common = 5.1.6-27.el5 for package: php
–> Processing Dependency: php-cli = 5.1.6-27.el5 for package: php
–> Processing Dependency: libaspell.so.15()(64bit) for package: php
–> Processing Dependency: libpspell.so.15()(64bit) for package: php
–> Processing Dependency: libcurl.so.3()(64bit) for package: php
–> Processing Dependency: libidn.so.11()(64bit) for package: php
–> Processing Dependency: libgmp.so.3()(64bit) for package: php
—> Package php-mysql.x86_64 0:5.1.6-27.el5 set to be updated
–> Processing Dependency: php-pdo for package: php-mysql
—> Package php-snmp.x86_64 0:5.1.6-27.el5 set to be updated
—> Package rrdtool.i386 0:1.2.27-3.el5 set to be updated
–> Processing Dependency: libfreetype.so.6 for package: rrdtool
–> Processing Dependency: libpng12.so.0(PNG12_0) for package: rrdtool
–> Processing Dependency: libpng12.so.0 for package: rrdtool
—> Package rrdtool.x86_64 0:1.2.27-3.el5 set to be updated
–> Processing Dependency: libpng12.so.0(PNG12_0)(64bit) for package: rrdtool
–> Processing Dependency: libpng12.so.0()(64bit) for package: rrdtool
–> Processing Dependency: libfreetype.so.6()(64bit) for package: rrdtool
–> Running transaction check
—> Package apr.x86_64 0:1.2.7-11.el5_3.1 set to be updated
—> Package apr-util.x86_64 0:1.2.7-11.el5 set to be updated
–> Processing Dependency: libpq.so.4()(64bit) for package: apr-util
—> Package aspell.x86_64 12:0.60.3-7.1 set to be updated
–> Processing Dependency: aspell-en for package: aspell
—> Package curl.x86_64 0:7.15.5-9.el5 set to be updated
—> Package freetype.i386 0:2.2.1-26.el5_5 set to be updated
—> Package freetype.x86_64 0:2.2.1-26.el5_5 set to be updated
—> Package gmp.x86_64 0:4.1.4-10.el5 set to be updated
—> Package libidn.x86_64 0:0.6.5-1.1 set to be updated
—> Package libpng.i386 2:1.2.10-7.1.el5_5.3 set to be updated
—> Package libpng.x86_64 2:1.2.10-7.1.el5_5.3 set to be updated
—> Package lm_sensors.x86_64 0:2.10.7-9.el5 set to be updated
–> Processing Dependency: /usr/sbin/dmidecode for package: lm_sensors
—> Package mailcap.noarch 0:2.1.23-1.fc6 set to be updated
—> Package ncurses.i386 0:5.5-24.20060715 set to be updated
—> Package net-snmp-libs.x86_64 1:5.3.2.2-9.el5_5.1 set to be updated
—> Package perl-DBD-MySQL.x86_64 0:3.0007-2.el5 set to be updated
—> Package perl-DBI.x86_64 0:1.52-2.el5 set to be updated
—> Package php-cli.x86_64 0:5.1.6-27.el5 set to be updated
—> Package php-common.x86_64 0:5.1.6-27.el5 set to be updated
—> Package php-pdo.x86_64 0:5.1.6-27.el5 set to be updated
–> Running transaction check
—> Package aspell-en.x86_64 50:6.0-2.1 set to be updated
—> Package dmidecode.x86_64 1:2.10-3.el5 set to be updated
—> Package postgresql-libs.x86_64 0:8.1.21-1.el5_5.1 set to be updated
–> Finished Dependency Resolution

Dependencies Resolved

===========================================================================================================================================================================================================================================================
Package                                                         Arch                                                   Version                                                              Repository                                               Size
===========================================================================================================================================================================================================================================================
Installing:
httpd                                                           x86_64                                                 2.2.3-43.el5.centos                                                  base                                                    1.2 M
libart_lgpl                                                     i386                                                   2.3.17-4                                                             base                                                     76 k
libart_lgpl                                                     x86_64                                                 2.3.17-4                                                             base                                                     75 k
mysql                                                           i386                                                   5.0.77-4.el5_5.3                                                     updates                                                 4.8 M
mysql                                                           x86_64                                                 5.0.77-4.el5_5.3                                                     updates                                                 4.8 M
mysql-server                                                    x86_64                                                 5.0.77-4.el5_5.3                                                     updates                                                 9.8 M
net-snmp                                                        x86_64                                                 1:5.3.2.2-9.el5_5.1                                                  updates                                                 702 k
net-snmp-utils                                                  x86_64                                                 1:5.3.2.2-9.el5_5.1                                                  updates                                                 188 k
php                                                             x86_64                                                 5.1.6-27.el5                                                         base                                                    2.3 M
php-mysql                                                       x86_64                                                 5.1.6-27.el5                                                         base                                                     89 k
php-snmp                                                        x86_64                                                 5.1.6-27.el5                                                         base                                                     30 k
rrdtool                                                         i386                                                   1.2.27-3.el5                                                         epel                                                    464 k
rrdtool                                                         x86_64                                                 1.2.27-3.el5                                                         epel                                                    466 k
Installing for dependencies:
apr                                                             x86_64                                                 1.2.7-11.el5_3.1                                                     base                                                    118 k
apr-util                                                        x86_64                                                 1.2.7-11.el5                                                         base                                                     79 k
aspell                                                          x86_64                                                 12:0.60.3-7.1                                                        base                                                    946 k
aspell-en                                                       x86_64                                                 50:6.0-2.1                                                           base                                                    1.6 M
curl                                                            x86_64                                                 7.15.5-9.el5                                                         base                                                    230 k
dmidecode                                                       x86_64                                                 1:2.10-3.el5                                                         base                                                     74 k
freetype                                                        i386                                                   2.2.1-26.el5_5                                                       updates                                                 311 k
freetype                                                        x86_64                                                 2.2.1-26.el5_5                                                       updates                                                 310 k
gmp                                                             x86_64                                                 4.1.4-10.el5                                                         base                                                    201 k
libidn                                                          x86_64                                                 0.6.5-1.1                                                            base                                                    195 k
libpng                                                          i386                                                   2:1.2.10-7.1.el5_5.3                                                 updates                                                 241 k
libpng                                                          x86_64                                                 2:1.2.10-7.1.el5_5.3                                                 updates                                                 234 k
lm_sensors                                                      x86_64                                                 2.10.7-9.el5                                                         base                                                    525 k
mailcap                                                         noarch                                                 2.1.23-1.fc6                                                         base                                                     14 k
ncurses                                                         i386                                                   5.5-24.20060715                                                      base                                                    1.1 M
net-snmp-libs                                                   x86_64                                                 1:5.3.2.2-9.el5_5.1                                                  updates                                                 1.3 M
perl-DBD-MySQL                                                  x86_64                                                 3.0007-2.el5                                                         base                                                    148 k
perl-DBI                                                        x86_64                                                 1.52-2.el5                                                           base                                                    600 k
php-cli                                                         x86_64                                                 5.1.6-27.el5                                                         base                                                    2.2 M
php-common                                                      x86_64                                                 5.1.6-27.el5                                                         base                                                    153 k
php-pdo                                                         x86_64                                                 5.1.6-27.el5                                                         base                                                     66 k
postgresql-libs                                                 x86_64                                                 8.1.21-1.el5_5.1                                                     updates                                                 196 k

Transaction Summary
===========================================================================================================================================================================================================================================================
Install     35 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 36 M
Downloading Packages:
(1/35): mailcap-2.1.23-1.fc6.noarch.rpm                                                                                                                                                                                             |  14 kB     00:00
(2/35): php-snmp-5.1.6-27.el5.x86_64.rpm                                                                                                                                                                                            |  30 kB     00:00
(3/35): php-pdo-5.1.6-27.el5.x86_64.rpm                                                                                                                                                                                             |  66 kB     00:00
(4/35): dmidecode-2.10-3.el5.x86_64.rpm                                                                                                                                                                                             |  74 kB     00:00
(5/35): libart_lgpl-2.3.17-4.x86_64.rpm                                                                                                                                                                                             |  75 kB     00:00
(6/35): libart_lgpl-2.3.17-4.i386.rpm                                                                                                                                                                                               |  76 kB     00:00
(7/35): apr-util-1.2.7-11.el5.x86_64.rpm                                                                                                                                                                                            |  79 kB     00:00
(8/35): php-mysql-5.1.6-27.el5.x86_64.rpm                                                                                                                                                                                           |  89 kB     00:00
(9/35): apr-1.2.7-11.el5_3.1.x86_64.rpm                                                                                                                                                                                             | 118 kB     00:00
(10/35): perl-DBD-MySQL-3.0007-2.el5.x86_64.rpm                                                                                                                                                                                     | 148 kB     00:00
(11/35): php-common-5.1.6-27.el5.x86_64.rpm                                                                                                                                                                                         | 153 kB     00:00
(12/35): net-snmp-utils-5.3.2.2-9.el5_5.1.x86_64.rpm                                                                                                                                                                                | 188 kB     00:00
(13/35): libidn-0.6.5-1.1.x86_64.rpm                                                                                                                                                                                                | 195 kB     00:00
(14/35): postgresql-libs-8.1.21-1.el5_5.1.x86_64.rpm                                                                                                                                                                                | 196 kB     00:00
(15/35): gmp-4.1.4-10.el5.x86_64.rpm                                                                                                                                                                                                | 201 kB     00:00
(16/35): curl-7.15.5-9.el5.x86_64.rpm                                                                                                                                                                                               | 230 kB     00:01
(17/35): libpng-1.2.10-7.1.el5_5.3.x86_64.rpm                                                                                                                                                                                       | 234 kB     00:00
(18/35): libpng-1.2.10-7.1.el5_5.3.i386.rpm                                                                                                                                                                                         | 241 kB     00:00
(19/35): freetype-2.2.1-26.el5_5.x86_64.rpm                                                                                                                                                                                         | 310 kB     00:00
(20/35): freetype-2.2.1-26.el5_5.i386.rpm                                                                                                                                                                                           | 311 kB     00:00
(21/35): rrdtool-1.2.27-3.el5.i386.rpm                                                                                                                                                                                              | 464 kB     00:00
(22/35): rrdtool-1.2.27-3.el5.x86_64.rpm                                                                                                                                                                                            | 466 kB     00:00
(23/35): lm_sensors-2.10.7-9.el5.x86_64.rpm                                                                                                                                                                                         | 525 kB     00:01
(24/35): perl-DBI-1.52-2.el5.x86_64.rpm                                                                                                                                                                                             | 600 kB     00:01
(25/35): net-snmp-5.3.2.2-9.el5_5.1.x86_64.rpm                                                                                                                                                                                      | 702 kB     00:00
(26/35): aspell-0.60.3-7.1.x86_64.rpm                                                                                                                                                                                               | 946 kB     00:02
(27/35): ncurses-5.5-24.20060715.i386.rpm                                                                                                                                                                                           | 1.1 MB     00:03
(28/35): httpd-2.2.3-43.el5.centos.x86_64.rpm                                                                                                                                                                                       | 1.2 MB     00:01
(29/35): net-snmp-libs-5.3.2.2-9.el5_5.1.x86_64.rpm                                                                                                                                                                                 | 1.3 MB     00:00
(30/35): aspell-en-6.0-2.1.x86_64.rpm                                                                                                                                                                                               | 1.6 MB     00:03
(31/35): php-cli-5.1.6-27.el5.x86_64.rpm                                                                                                                                                                                            | 2.2 MB     00:04
(32/35): php-5.1.6-27.el5.x86_64.rpm                                                                                                                                                                                                | 2.3 MB     00:06
(33/35): mysql-5.0.77-4.el5_5.3.i386.rpm                                                                                                                                                                                            | 4.8 MB     00:00
(34/35): mysql-5.0.77-4.el5_5.3.x86_64.rpm                                                                                                                                                                                          | 4.8 MB     00:00
(35/35): mysql-server-5.0.77-4.el5_5.3.x86_64.rpm                                                                                                                                                                                   | 9.8 MB     00:01
———————————————————————————————————————————————————————————————————————————————————–
Total                                                                                                                                                                                                                      1.0 MB/s |  36 MB     00:35
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 217521f6
epel/gpgkey                                                                                                                                                                                                                         | 1.7 kB     00:00
Importing GPG key 0x217521F6 “Fedora EPEL <epel@fedoraproject.org>” from /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing     : php-common                                                                                                                                                                                                                         1/35
Installing     : perl-DBI                                                                                                                                                                                                                           2/35
Installing     : mysql                                                                                                                                                                                                                              3/35
Installing     : libidn                                                                                                                                                                                                                             4/35
Installing     : net-snmp-libs                                                                                                                                                                                                                      5/35
Installing     : curl                                                                                                                                                                                                                               6/35
Installing     : gmp                                                                                                                                                                                                                                7/35
Installing     : libpng                                                                                                                                                                                                                             8/35
Installing     : apr                                                                                                                                                                                                                                9/35
Installing     : perl-DBD-MySQL                                                                                                                                                                                                                    10/35
Installing     : php-pdo                                                                                                                                                                                                                           11/35
Installing     : dmidecode                                                                                                                                                                                                                         12/35
Installing     : lm_sensors                                                                                                                                                                                                                        13/35
Installing     : net-snmp                                                                                                                                                                                                                          14/35
Installing     : freetype                                                                                                                                                                                                                          15/35
Installing     : postgresql-libs                                                                                                                                                                                                                   16/35
Installing     : apr-util                                                                                                                                                                                                                          17/35
Installing     : libart_lgpl                                                                                                                                                                                                                       18/35
Installing     : libpng                                                                                                                                                                                                                            19/35
Installing     : ncurses                                                                                                                                                                                                                           20/35
Installing     : freetype                                                                                                                                                                                                                          21/35
Installing     : libart_lgpl                                                                                                                                                                                                                       22/35
Installing     : mailcap                                                                                                                                                                                                                           23/35
Installing     : httpd                                                                                                                                                                                                                             24/35
Installing     : rrdtool                                                                                                                                                                                                                           25/35
Installing     : net-snmp-utils                                                                                                                                                                                                                    26/35
Installing     : php-snmp                                                                                                                                                                                                                          27/35
Installing     : php-mysql                                                                                                                                                                                                                         28/35
Installing     : mysql-server                                                                                                                                                                                                                      29/35
Installing     : rrdtool                                                                                                                                                                                                                           30/35
Installing     : mysql                                                                                                                                                                                                                             31/35
Installing     : aspell                                                                                                                                                                                                                            32/35
Installing     : php-cli                                                                                                                                                                                                                           33/35
Installing     : php                                                                                                                                                                                                                               34/35
Installing     : aspell-en                                                                                                                                                                                                                         35/35

Installed:
httpd.x86_64 0:2.2.3-43.el5.centos         libart_lgpl.i386 0:2.3.17-4  libart_lgpl.x86_64 0:2.3.17-4    mysql.i386 0:5.0.77-4.el5_5.3   mysql.x86_64 0:5.0.77-4.el5_5.3  mysql-server.x86_64 0:5.0.77-4.el5_5.3  net-snmp.x86_64 1:5.3.2.2-9.el5_5.1
net-snmp-utils.x86_64 1:5.3.2.2-9.el5_5.1  php.x86_64 0:5.1.6-27.el5    php-mysql.x86_64 0:5.1.6-27.el5  php-snmp.x86_64 0:5.1.6-27.el5  rrdtool.i386 0:1.2.27-3.el5      rrdtool.x86_64 0:1.2.27-3.el5

Dependency Installed:
apr.x86_64 0:1.2.7-11.el5_3.1          apr-util.x86_64 0:1.2.7-11.el5         aspell.x86_64 12:0.60.3-7.1          aspell-en.x86_64 50:6.0-2.1                     curl.x86_64 0:7.15.5-9.el5                 dmidecode.x86_64 1:2.10-3.el5
freetype.i386 0:2.2.1-26.el5_5         freetype.x86_64 0:2.2.1-26.el5_5       gmp.x86_64 0:4.1.4-10.el5            libidn.x86_64 0:0.6.5-1.1                       libpng.i386 2:1.2.10-7.1.el5_5.3           libpng.x86_64 2:1.2.10-7.1.el5_5.3
lm_sensors.x86_64 0:2.10.7-9.el5       mailcap.noarch 0:2.1.23-1.fc6          ncurses.i386 0:5.5-24.20060715       net-snmp-libs.x86_64 1:5.3.2.2-9.el5_5.1        perl-DBD-MySQL.x86_64 0:3.0007-2.el5       perl-DBI.x86_64 0:1.52-2.el5
php-cli.x86_64 0:5.1.6-27.el5          php-common.x86_64 0:5.1.6-27.el5       php-pdo.x86_64 0:5.1.6-27.el5        postgresql-libs.x86_64 0:8.1.21-1.el5_5.1

Complete!
[root@testme ~]# chkconfig httpd on
[root@testme ~]# chkconfig snmpd on
[root@testme ~]# chkconfig mysqld on
[root@testme ~]# /etc/init.d/httpd restart
Stopping httpd:                                            [FAILED]
Starting httpd: httpd: Could not reliably determine the server’s fully qualified domain name, using 184.106.212.215 for ServerName
[  OK  ]
[root@testme ~]# /etc/init.d/mysqld restart
Stopping MySQL:                                            [FAILED]
Initializing MySQL database:  Installing MySQL system tables…
OK
Filling help tables…
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password ‘new-password’
/usr/bin/mysqladmin -u root -h testme password ‘new-password’

Alternatively you can run:
/usr/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd mysql-test ; perl mysql-test-run.pl

Please report any problems with the /usr/bin/mysqlbug script!

The latest information about MySQL is available on the web at

http://www.mysql.com

Support MySQL by buying support/licenses at http://shop.mysql.com
[  OK  ]
Starting MySQL:                                            [  OK  ]
[root@testme ~]# /etc/init.d/snmpd restart
Stopping snmpd:                                            [FAILED]
Starting snmpd:                                            [  OK  ]
[root@testme ~]# rpm -qa | grep rrd
rrdtool-1.2.27-3.el5
rrdtool-1.2.27-3.el5
[root@testme ~]# vi /etc/my.cnf
[root@testme ~]# /etc/init.d/mysqld restart
Stopping MySQL:                                            [  OK  ]
Starting MySQL:                                            [  OK  ]
[root@testme ~]# netstat -ntlp | grep :3306
tcp        0      0 127.0.0.1:3306              0.0.0.0:*                   LISTEN      1350/mysqld
[root@testme ~]# mysql -u root
Welcome to the MySQL monitor.  Commands end with ; or g.
Your MySQL connection id is 2
Server version: 5.0.77 Source distribution

Type ‘help;’ or ‘h’ for help. Type ‘c’ to clear the buffer.

mysql> use mysql;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> update user set Password=PASSWORD(‘password’) where User=’root’;
Query OK, 3 rows affected (0.00 sec)
Rows matched: 3  Changed: 3  Warnings: 0

mysql> create database cacti;
Query OK, 1 row affected (0.00 sec)

mysql> grant all privileges on cacti.* to ‘cacti’@'localhost’ identified by ‘password’ with grant option;
Query OK, 0 rows affected (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

mysql> exit
Bye
[root@testme ~]# cd /var/www/html/
[root@testme html]# wget http://www.cacti.net/downloads/cacti-0.8.7g.tar.gz
–15:20:40–  http://www.cacti.net/downloads/cacti-0.8.7g.tar.gz
Resolving www.cacti.net… 140.211.167.231, 209.242.232.5
Connecting to www.cacti.net|140.211.167.231|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 2236916 (2.1M) [application/x-gzip]
Saving to: `cacti-0.8.7g.tar.gz’

100%[==================================================================================================================================================================================================================>] 2,236,916    131K/s   in 19s

15:20:59 (114 KB/s) – `cacti-0.8.7g.tar.gz’ saved [2236916/2236916]

[root@testme html]# tar -xvzf cacti-0.8.7g.tar.gz
cacti-0.8.7g/
cacti-0.8.7g/poller.php
cacti-0.8.7g/docs/
cacti-0.8.7g/docs/html/
cacti-0.8.7g/docs/html/delete_users.html
cacti-0.8.7g/docs/html/unix_apply_patches.html
cacti-0.8.7g/docs/html/cli_add_data_query.html
cacti-0.8.7g/docs/html/new_graphs.html
cacti-0.8.7g/docs/html/cli_poller_output_empty.html
cacti-0.8.7g/docs/html/testing_script_in_script_server.html
cacti-0.8.7g/docs/html/data_presentation.html
cacti-0.8.7g/docs/html/basics.html
cacti-0.8.7g/docs/html/bsd_ports.html
cacti-0.8.7g/docs/html/data_queries.html
cacti-0.8.7g/docs/html/host_variables.html
cacti-0.8.7g/docs/html/faq.html
cacti-0.8.7g/docs/html/copying_user.html
cacti-0.8.7g/docs/html/install_unix.html
cacti-0.8.7g/docs/html/migration_php_scripts_to_script_server.html
cacti-0.8.7g/docs/html/user_management.html
cacti-0.8.7g/docs/html/check_rrd_graph.html
cacti-0.8.7g/docs/html/check_cacti_poller.html
cacti-0.8.7g/docs/html/variables.html
cacti-0.8.7g/docs/html/cacti_help.html
cacti-0.8.7g/docs/html/debug_rpm_installation.html
cacti-0.8.7g/docs/html/installation.html
cacti-0.8.7g/docs/html/graph_viewing.html
cacti-0.8.7g/docs/html/check_rrd_owner.html
cacti-0.8.7g/docs/html/script_query_xml.html
cacti-0.8.7g/docs/html/scripts.html
cacti-0.8.7g/docs/html/templates.html
cacti-0.8.7g/docs/html/data_input_methods.html
cacti-0.8.7g/docs/html/how_to.html
cacti-0.8.7g/docs/html/check_data_gathering.html
cacti-0.8.7g/docs/html/rrdtool_features.html
cacti-0.8.7g/docs/html/cdefs.html
cacti-0.8.7g/docs/html/using_spine.html
cacti-0.8.7g/docs/html/advanced_topics.html
cacti-0.8.7g/docs/html/php_script_server.html
cacti-0.8.7g/docs/html/check_rrd_updating.html
cacti-0.8.7g/docs/html/batch_copy_users.html
cacti-0.8.7g/docs/html/debugging.html
cacti-0.8.7g/docs/html/graph_snmp_oid.html
cacti-0.8.7g/docs/html/unix_configure_httpd.html
cacti-0.8.7g/docs/html/template_import.html
cacti-0.8.7g/docs/html/cli_add_graphs.html
cacti-0.8.7g/docs/html/create_new_user.html
cacti-0.8.7g/docs/html/check_rrd_numbers.html
cacti-0.8.7g/docs/html/upgrade.html
cacti-0.8.7g/docs/html/images/
cacti-0.8.7g/docs/html/images/user_management_delete_1.png
cacti-0.8.7g/docs/html/images/user_management_enable_disable_2.png
cacti-0.8.7g/docs/html/images/host_template.png
cacti-0.8.7g/docs/html/images/user_management_delete_2.png
cacti-0.8.7g/docs/html/images/user_management_batch_copy_2.png
cacti-0.8.7g/docs/html/images/data_source_title_template.png
cacti-0.8.7g/docs/html/images/user_management_edit.png
cacti-0.8.7g/docs/html/images/graph_template.png
cacti-0.8.7g/docs/html/images/principles_of_operation.png
cacti-0.8.7g/docs/html/images/data_template.png
cacti-0.8.7g/docs/html/images/import_template.png
cacti-0.8.7g/docs/html/images/user_management_copy_1.png
cacti-0.8.7g/docs/html/images/graph_tree.png
cacti-0.8.7g/docs/html/images/user_management_copy_2.png
cacti-0.8.7g/docs/html/images/user_management_enable_disable_1.png
cacti-0.8.7g/docs/html/images/user_management_new.png
cacti-0.8.7g/docs/html/images/user_management_batch_copy_1.png
cacti-0.8.7g/docs/html/images/data_source_title_example2.png
cacti-0.8.7g/docs/html/images/data_source_title_example1.png
cacti-0.8.7g/docs/html/images/new_graphs.png
cacti-0.8.7g/docs/html/images/new_device.png
cacti-0.8.7g/docs/html/images/user_management_list.png
cacti-0.8.7g/docs/html/images/export_template.png
cacti-0.8.7g/docs/html/graph_templates.html
cacti-0.8.7g/docs/html/cli_copy_user.html
cacti-0.8.7g/docs/html/template_export.html
cacti-0.8.7g/docs/html/cli_poller_reindex_hosts.html
cacti-0.8.7g/docs/html/check_mysql_updating.html
cacti-0.8.7g/docs/html/reference.html
cacti-0.8.7g/docs/html/install_windows.html
cacti-0.8.7g/docs/html/unix_configure_php.html
cacti-0.8.7g/docs/html/unix_configure_cacti.html
cacti-0.8.7g/docs/html/snmp_query_xml.html
cacti-0.8.7g/docs/html/data_storage.html
cacti-0.8.7g/docs/html/graph_overview.html
cacti-0.8.7g/docs/html/host_templates.html
cacti-0.8.7g/docs/html/cli_poller_graphs_reapply_names.html
cacti-0.8.7g/docs/html/cli_add_tree.html
cacti-0.8.7g/docs/html/debug_miscellaneous.html
cacti-0.8.7g/docs/html/requirements.html
cacti-0.8.7g/docs/html/index.html
cacti-0.8.7g/docs/html/unix_configure_mysql.html
cacti-0.8.7g/docs/html/guest_access.html
cacti-0.8.7g/docs/html/cli_add_device.html
cacti-0.8.7g/docs/html/cli_add_graph_template.html
cacti-0.8.7g/docs/html/check_zero_values.html
cacti-0.8.7g/docs/html/graph_howto.html
cacti-0.8.7g/docs/html/cli_add_perms.html
cacti-0.8.7g/docs/html/making_scripts_work_with_cacti.html
cacti-0.8.7g/docs/html/upgrade_using_hostmib_data_queries.html
cacti-0.8.7g/docs/html/LICENSE.html
cacti-0.8.7g/docs/html/unix_configure_spine.html
cacti-0.8.7g/docs/html/operating_principles.html
cacti-0.8.7g/docs/html/enable_disable_users.html
cacti-0.8.7g/docs/README
cacti-0.8.7g/docs/CONTRIB
cacti-0.8.7g/docs/txt/
cacti-0.8.7g/docs/txt/manual.txt
cacti-0.8.7g/docs/pdf/
cacti-0.8.7g/docs/pdf/README
cacti-0.8.7g/docs/CHANGELOG
cacti-0.8.7g/host.php
cacti-0.8.7g/templates_import.php
cacti-0.8.7g/cli/
cacti-0.8.7g/cli/rebuild_poller_cache.php
cacti-0.8.7g/cli/poller_graphs_reapply_names.php
cacti-0.8.7g/cli/upgrade_database.php
cacti-0.8.7g/cli/add_graphs.php
cacti-0.8.7g/cli/add_perms.php
cacti-0.8.7g/cli/add_tree.php
cacti-0.8.7g/cli/repair_database.php
cacti-0.8.7g/cli/add_graph_template.php
cacti-0.8.7g/cli/add_data_query.php
cacti-0.8.7g/cli/import_template.php
cacti-0.8.7g/cli/add_device.php
cacti-0.8.7g/cli/copy_user.php
cacti-0.8.7g/cli/.htaccess
cacti-0.8.7g/cli/poller_reindex_hosts.php
cacti-0.8.7g/cli/poller_output_empty.php
cacti-0.8.7g/cli/poller_data_sources_reapply_names.php
cacti-0.8.7g/cli/convert_innodb.php
cacti-0.8.7g/cli/host_update_template.php
cacti-0.8.7g/cli/structure_rra_paths.php
cacti-0.8.7g/cli/repair_templates.php
cacti-0.8.7g/cmd.php
cacti-0.8.7g/utilities.php
cacti-0.8.7g/color.php
cacti-0.8.7g/lib/
cacti-0.8.7g/lib/poller.php
cacti-0.8.7g/lib/html_validate.php
cacti-0.8.7g/lib/functions.php
cacti-0.8.7g/lib/html.php
cacti-0.8.7g/lib/api_tree.php
cacti-0.8.7g/lib/import.php
cacti-0.8.7g/lib/html_utility.php
cacti-0.8.7g/lib/api_data_source.php
cacti-0.8.7g/lib/graph_export.php
cacti-0.8.7g/lib/auth.php
cacti-0.8.7g/lib/database.php
cacti-0.8.7g/lib/snmp.php
cacti-0.8.7g/lib/xml.php
cacti-0.8.7g/lib/adodb/
cacti-0.8.7g/lib/adodb/adodb-pear.inc.php
cacti-0.8.7g/lib/adodb/lang/
cacti-0.8.7g/lib/adodb/lang/adodb-pt-br.inc.php
cacti-0.8.7g/lib/adodb/lang/adodb-sv.inc.php
cacti-0.8.7g/lib/adodb/lang/adodb-es.inc.php
cacti-0.8.7g/lib/adodb/lang/adodb-fr.inc.php
cacti-0.8.7g/lib/adodb/lang/adodb-hu.inc.php
cacti-0.8.7g/lib/adodb/lang/adodb-ro.inc.php
cacti-0.8.7g/lib/adodb/lang/adodb-ca.inc.php
cacti-0.8.7g/lib/adodb/lang/adodb-it.inc.php
cacti-0.8.7g/lib/adodb/lang/adodb-pl.inc.php
cacti-0.8.7g/lib/adodb/lang/adodb-ru1251.inc.php
cacti-0.8.7g/lib/adodb/lang/adodb-bg.inc.php
cacti-0.8.7g/lib/adodb/lang/adodb-nl.inc.php
cacti-0.8.7g/lib/adodb/lang/adodb-cz.inc.php
cacti-0.8.7g/lib/adodb/lang/adodb-ar.inc.php
cacti-0.8.7g/lib/adodb/lang/adodb-de.inc.php
cacti-0.8.7g/lib/adodb/lang/adodb-en.inc.php
cacti-0.8.7g/lib/adodb/lang/adodb-cn.inc.php
cacti-0.8.7g/lib/adodb/lang/adodb-bgutf8.inc.php
cacti-0.8.7g/lib/adodb/adodb-xmlschema.inc.php
cacti-0.8.7g/lib/adodb/license.txt
cacti-0.8.7g/lib/adodb/adodb-csvlib.inc.php
cacti-0.8.7g/lib/adodb/adodb.inc.php
cacti-0.8.7g/lib/adodb/adodb-php4.inc.php
cacti-0.8.7g/lib/adodb/adodb-lib.inc.php
cacti-0.8.7g/lib/adodb/adodb-perf.inc.php
cacti-0.8.7g/lib/adodb/datadict/
cacti-0.8.7g/lib/adodb/datadict/datadict-generic.inc.php
cacti-0.8.7g/lib/adodb/datadict/datadict-informix.inc.php
cacti-0.8.7g/lib/adodb/datadict/datadict-oci8.inc.php
cacti-0.8.7g/lib/adodb/datadict/datadict-sapdb.inc.php
cacti-0.8.7g/lib/adodb/datadict/datadict-mssql.inc.php
cacti-0.8.7g/lib/adodb/datadict/datadict-mysql.inc.php
cacti-0.8.7g/lib/adodb/datadict/datadict-sybase.inc.php
cacti-0.8.7g/lib/adodb/datadict/datadict-access.inc.php
cacti-0.8.7g/lib/adodb/datadict/datadict-ibase.inc.php
cacti-0.8.7g/lib/adodb/datadict/datadict-postgres.inc.php
cacti-0.8.7g/lib/adodb/datadict/datadict-db2.inc.php
cacti-0.8.7g/lib/adodb/datadict/datadict-firebird.inc.php
cacti-0.8.7g/lib/adodb/adodb-error.inc.php
cacti-0.8.7g/lib/adodb/drivers/
cacti-0.8.7g/lib/adodb/drivers/adodb-postgres7.inc.php
cacti-0.8.7g/lib/adodb/drivers/adodb-ado.inc.php
cacti-0.8.7g/lib/adodb/drivers/adodb-odbtp.inc.php
cacti-0.8.7g/lib/adodb/drivers/adodb-informix72.inc.php
cacti-0.8.7g/lib/adodb/drivers/adodb-sybase.inc.php
cacti-0.8.7g/lib/adodb/drivers/adodb-mysqlt.inc.php
cacti-0.8.7g/lib/adodb/drivers/adodb-oci805.inc.php
cacti-0.8.7g/lib/adodb/drivers/adodb-borland_ibase.inc.php
cacti-0.8.7g/lib/adodb/drivers/adodb-ado_access.inc.php
cacti-0.8.7g/lib/adodb/drivers/adodb-postgres.inc.php
cacti-0.8.7g/lib/adodb/drivers/adodb-firebird.inc.php
cacti-0.8.7g/lib/adodb/drivers/adodb-netezza.inc.php
cacti-0.8.7g/lib/adodb/drivers/adodb-ibase.inc.php
cacti-0.8.7g/lib/adodb/drivers/adodb-postgres64.inc.php
cacti-0.8.7g/lib/adodb/drivers/adodb-db2.inc.php
cacti-0.8.7g/lib/adodb/drivers/adodb-proxy.inc.php
cacti-0.8.7g/lib/adodb/drivers/adodb-oci8po.inc.php
cacti-0.8.7g/lib/adodb/drivers/adodb-odbc_mssql.inc.php
cacti-0.8.7g/lib/adodb/drivers/adodb-mysqli.inc.php
cacti-0.8.7g/lib/adodb/drivers/adodb-access.inc.php
cacti-0.8.7g/lib/adodb/drivers/adodb-fbsql.inc.php
cacti-0.8.7g/lib/adodb/drivers/adodb-sqlitepo.inc.php
cacti-0.8.7g/lib/adodb/drivers/adodb-sqlite.inc.php
cacti-0.8.7g/lib/adodb/drivers/adodb-mssqlpo.inc.php
cacti-0.8.7g/lib/adodb/drivers/adodb-ado5.inc.php
cacti-0.8.7g/lib/adodb/drivers/adodb-mysql.inc.php
cacti-0.8.7g/lib/adodb/drivers/adodb-odbtp_unicode.inc.php
cacti-0.8.7g/lib/adodb/drivers/adodb-vfp.inc.php
cacti-0.8.7g/lib/adodb/drivers/adodb-oracle.inc.php
cacti-0.8.7g/lib/adodb/drivers/adodb-odbc.inc.php
cacti-0.8.7g/lib/adodb/drivers/adodb-ldap.inc.php
cacti-0.8.7g/lib/adodb/drivers/adodb-sqlanywhere.inc.php
cacti-0.8.7g/lib/adodb/drivers/adodb-oci8.inc.php
cacti-0.8.7g/lib/adodb/drivers/adodb-pdo.inc.php
cacti-0.8.7g/lib/adodb/drivers/adodb-csv.inc.php
cacti-0.8.7g/lib/adodb/drivers/adodb-sapdb.inc.php
cacti-0.8.7g/lib/adodb/drivers/adodb-informix.inc.php
cacti-0.8.7g/lib/adodb/drivers/adodb-ado_mssql.inc.php
cacti-0.8.7g/lib/adodb/drivers/adodb-mssql.inc.php
cacti-0.8.7g/lib/adodb/drivers/adodb-odbc_oracle.inc.php
cacti-0.8.7g/lib/adodb/adodb-time.inc.php
cacti-0.8.7g/lib/adodb/adodb-iterator.inc.php
cacti-0.8.7g/lib/adodb/adodb-datadict.inc.php
cacti-0.8.7g/lib/adodb/tohtml.inc.php
cacti-0.8.7g/lib/adodb/toexport.inc.php
cacti-0.8.7g/lib/adodb/adodb-exceptions.inc.php
cacti-0.8.7g/lib/adodb/adodb-errorpear.inc.php
cacti-0.8.7g/lib/adodb/adodb-errorhandler.inc.php
cacti-0.8.7g/lib/html_tree.php
cacti-0.8.7g/lib/api_device.php
cacti-0.8.7g/lib/html_form_template.php
cacti-0.8.7g/lib/api_poller.php
cacti-0.8.7g/lib/sort.php
cacti-0.8.7g/lib/graph_variables.php
cacti-0.8.7g/lib/rrd.php
cacti-0.8.7g/lib/variables.php
cacti-0.8.7g/lib/time.php
cacti-0.8.7g/lib/html_form.php
cacti-0.8.7g/lib/cdef.php
cacti-0.8.7g/lib/timespan_settings.php
cacti-0.8.7g/lib/utility.php
cacti-0.8.7g/lib/ldap.php
cacti-0.8.7g/lib/data_query.php
cacti-0.8.7g/lib/export.php
cacti-0.8.7g/lib/ping.php
cacti-0.8.7g/lib/tree.php
cacti-0.8.7g/lib/api_automation_tools.php
cacti-0.8.7g/lib/template.php
cacti-0.8.7g/lib/api_graph.php
cacti-0.8.7g/graphs_new.php
cacti-0.8.7g/graph_templates_inputs.php
cacti-0.8.7g/scripts/
cacti-0.8.7g/scripts/unix_processes.pl
cacti-0.8.7g/scripts/ss_fping.php
cacti-0.8.7g/scripts/unix_tcp_connections.pl
cacti-0.8.7g/scripts/sql.php
cacti-0.8.7g/scripts/diskfree.sh
cacti-0.8.7g/scripts/linux_memory.pl
cacti-0.8.7g/scripts/ss_sql.php
cacti-0.8.7g/scripts/unix_users.pl
cacti-0.8.7g/scripts/ss_host_cpu.php
cacti-0.8.7g/scripts/ping.pl
cacti-0.8.7g/scripts/weatherbug.pl
cacti-0.8.7g/scripts/loadavg.pl
cacti-0.8.7g/scripts/query_host_cpu.php
cacti-0.8.7g/scripts/query_unix_partitions.pl
cacti-0.8.7g/scripts/query_host_partitions.php
cacti-0.8.7g/scripts/diskfree.pl
cacti-0.8.7g/scripts/webhits.pl
cacti-0.8.7g/scripts/ss_host_disk.php
cacti-0.8.7g/scripts/3com_cable_modem.pl
cacti-0.8.7g/scripts/loadavg_multi.pl
cacti-0.8.7g/log/
cacti-0.8.7g/log/.htaccess
cacti-0.8.7g/log/cacti.log
cacti-0.8.7g/poller_export.php
cacti-0.8.7g/graph.php
cacti-0.8.7g/settings.php
cacti-0.8.7g/auth_changepassword.php
cacti-0.8.7g/data_input.php
cacti-0.8.7g/logout.php
cacti-0.8.7g/README
cacti-0.8.7g/templates_export.php
cacti-0.8.7g/user_admin.php
cacti-0.8.7g/graph_settings.php
cacti-0.8.7g/install/
cacti-0.8.7g/install/0_8_7f_to_0_8_7g.php
cacti-0.8.7g/install/0_8_7e_to_0_8_7f.php
cacti-0.8.7g/install/0_8_4_to_0_8_5.php
cacti-0.8.7g/install/0_8_3_to_0_8_4.php
cacti-0.8.7g/install/0_8_2a_to_0_8_3.php
cacti-0.8.7g/install/0_8_6j_to_0_8_7.php
cacti-0.8.7g/install/0_8_7d_to_0_8_7e.php
cacti-0.8.7g/install/0_8_to_0_8_1.php
cacti-0.8.7g/install/install_finish.gif
cacti-0.8.7g/install/0_8_5a_to_0_8_6.php
cacti-0.8.7g/install/0_8_6d_to_0_8_6e.php
cacti-0.8.7g/install/0_8_7b_to_0_8_7c.php
cacti-0.8.7g/install/0_8_6f_to_0_8_6g.php
cacti-0.8.7g/install/0_8_7a_to_0_8_7b.php
cacti-0.8.7g/install/0_8_7c_to_0_8_7d.php
cacti-0.8.7g/install/0_8_7_to_0_8_7a.php
cacti-0.8.7g/install/0_8_6g_to_0_8_6h.php
cacti-0.8.7g/install/0_8_6_to_0_8_6a.php
cacti-0.8.7g/install/0_8_2_to_0_8_2a.php
cacti-0.8.7g/install/0_8_1_to_0_8_2.php
cacti-0.8.7g/install/0_8_6h_to_0_8_6i.php
cacti-0.8.7g/install/install_next.gif
cacti-0.8.7g/install/0_8_6c_to_0_8_6d.php
cacti-0.8.7g/install/index.php
cacti-0.8.7g/graph_templates.php
cacti-0.8.7g/graphs_items.php
cacti-0.8.7g/images/
cacti-0.8.7g/images/tab_settings_down.gif
cacti-0.8.7g/images/tab_console_down.gif
cacti-0.8.7g/images/tab_console.gif
cacti-0.8.7g/images/button_refresh.gif
cacti-0.8.7g/images/button_export.gif
cacti-0.8.7g/images/show.gif
cacti-0.8.7g/images/button_add.gif
cacti-0.8.7g/images/move_left.gif
cacti-0.8.7g/images/favicon.ico
cacti-0.8.7g/images/button_view.gif
cacti-0.8.7g/images/calendar.gif
cacti-0.8.7g/images/button_create.gif
cacti-0.8.7g/images/graph_properties.gif
cacti-0.8.7g/images/button_import.gif
cacti-0.8.7g/images/tab_graphs_down.gif
cacti-0.8.7g/images/tab_mode_list.gif
cacti-0.8.7g/images/hide.gif
cacti-0.8.7g/images/tab_mode_preview.gif
cacti-0.8.7g/images/cacti_logo.gif
cacti-0.8.7g/images/tab_settings.gif
cacti-0.8.7g/images/auth_login.gif
cacti-0.8.7g/images/graph_page_top.gif
cacti-0.8.7g/images/button_cancel2.gif
cacti-0.8.7g/images/button_purge.gif
cacti-0.8.7g/images/button_help.gif
cacti-0.8.7g/images/shadow_gray.gif
cacti-0.8.7g/images/tab_mode_tree_down.gif
cacti-0.8.7g/images/button_no.gif
cacti-0.8.7g/images/auth_logout.gif
cacti-0.8.7g/images/arrow.gif
cacti-0.8.7g/images/cacti_backdrop.gif
cacti-0.8.7g/images/delete_icon.gif
cacti-0.8.7g/images/shadow.gif
cacti-0.8.7g/images/button_default.gif
cacti-0.8.7g/images/delete_icon_large.gif
cacti-0.8.7g/images/move_down.gif
cacti-0.8.7g/images/tab_cacti.gif
cacti-0.8.7g/images/tab_graphs.gif
cacti-0.8.7g/images/transparent_line.gif
cacti-0.8.7g/images/button_yes.gif
cacti-0.8.7g/images/move_right.gif
cacti-0.8.7g/images/button_colapse_all.gif
cacti-0.8.7g/images/button_clear.gif
cacti-0.8.7g/images/button_save.gif
cacti-0.8.7g/images/menu_line.gif
cacti-0.8.7g/images/cacti_about_logo.gif
cacti-0.8.7g/images/cacti_backdrop2.gif
cacti-0.8.7g/images/reload_icon_small.gif
cacti-0.8.7g/images/left_border.gif
cacti-0.8.7g/images/auth_deny.gif
cacti-0.8.7g/images/graph_zoom.gif
cacti-0.8.7g/images/button_delete.gif
cacti-0.8.7g/images/button_expand_all.gif
cacti-0.8.7g/images/tab_mode_list_down.gif
cacti-0.8.7g/images/move_up.gif
cacti-0.8.7g/images/graph_query.png
cacti-0.8.7g/images/button_cancel.gif
cacti-0.8.7g/images/menuarrow.gif
cacti-0.8.7g/images/tab_mode_preview_down.gif
cacti-0.8.7g/images/button_go.gif
cacti-0.8.7g/images/tab_mode_tree.gif
cacti-0.8.7g/graphs.php
cacti-0.8.7g/script_server.pl
cacti-0.8.7g/LICENSE
cacti-0.8.7g/graph_view.php
cacti-0.8.7g/host_templates.php
cacti-0.8.7g/graph_templates_items.php
cacti-0.8.7g/cacti.sql
cacti-0.8.7g/poller_commands.php
cacti-0.8.7g/include/
cacti-0.8.7g/include/global.php
cacti-0.8.7g/include/global_form.php
cacti-0.8.7g/include/top_header.php
cacti-0.8.7g/include/top_graph_header.php
cacti-0.8.7g/include/global_settings.php
cacti-0.8.7g/include/main.css
cacti-0.8.7g/include/treeview/
cacti-0.8.7g/include/treeview/ftv2lastnode.gif
cacti-0.8.7g/include/treeview/ftv2mnode.gif
cacti-0.8.7g/include/treeview/ftv2node.gif
cacti-0.8.7g/include/treeview/ftiens4_export.js
cacti-0.8.7g/include/treeview/ua.js
cacti-0.8.7g/include/treeview/ftv2blank.gif
cacti-0.8.7g/include/treeview/ftiens4.js
cacti-0.8.7g/include/treeview/ftv2pnode.gif
cacti-0.8.7g/include/treeview/ftv2plastnode.gif
cacti-0.8.7g/include/treeview/ftv2vertline.gif
cacti-0.8.7g/include/treeview/ftv2mlastnode.gif
cacti-0.8.7g/include/config.php
cacti-0.8.7g/include/auth.php
cacti-0.8.7g/include/bottom_footer.php
cacti-0.8.7g/include/layout.js
cacti-0.8.7g/include/jscalendar/
cacti-0.8.7g/include/jscalendar/lang/
cacti-0.8.7g/include/jscalendar/lang/calendar-ko.js
cacti-0.8.7g/include/jscalendar/lang/calendar-en.js
cacti-0.8.7g/include/jscalendar/lang/calendar-big5.js
cacti-0.8.7g/include/jscalendar/lang/cn_utf8.js
cacti-0.8.7g/include/jscalendar/lang/calendar-ru_win_.js
cacti-0.8.7g/include/jscalendar/lang/calendar-da.js
cacti-0.8.7g/include/jscalendar/lang/calendar-es.js
cacti-0.8.7g/include/jscalendar/lang/calendar-sk.js
cacti-0.8.7g/include/jscalendar/lang/calendar-cs-utf8.js
cacti-0.8.7g/include/jscalendar/lang/calendar-br.js
cacti-0.8.7g/include/jscalendar/lang/calendar-al.js
cacti-0.8.7g/include/jscalendar/lang/calendar-el.js
cacti-0.8.7g/include/jscalendar/lang/calendar-si.js
cacti-0.8.7g/include/jscalendar/lang/calendar-ro.js
cacti-0.8.7g/include/jscalendar/lang/calendar-bg.js
cacti-0.8.7g/include/jscalendar/lang/calendar-pl.js
cacti-0.8.7g/include/jscalendar/lang/calendar-af.js
cacti-0.8.7g/include/jscalendar/lang/calendar-nl.js
cacti-0.8.7g/include/jscalendar/lang/calendar-no.js
cacti-0.8.7g/include/jscalendar/lang/calendar-fi.js
cacti-0.8.7g/include/jscalendar/lang/calendar-ru.js
cacti-0.8.7g/include/jscalendar/lang/calendar-it.js
cacti-0.8.7g/include/jscalendar/lang/calendar-tr.js
cacti-0.8.7g/include/jscalendar/lang/calendar-jp.js
cacti-0.8.7g/include/jscalendar/lang/calendar-lt.js
cacti-0.8.7g/include/jscalendar/lang/calendar-lv.js
cacti-0.8.7g/include/jscalendar/lang/calendar-lt-utf8.js
cacti-0.8.7g/include/jscalendar/lang/calendar-pt.js
cacti-0.8.7g/include/jscalendar/lang/calendar-sv.js
cacti-0.8.7g/include/jscalendar/lang/calendar-sp.js
cacti-0.8.7g/include/jscalendar/lang/calendar-fr.js
cacti-0.8.7g/include/jscalendar/lang/calendar-cs-win.js
cacti-0.8.7g/include/jscalendar/lang/calendar-hr-utf8.js
cacti-0.8.7g/include/jscalendar/lang/calendar-du.js
cacti-0.8.7g/include/jscalendar/lang/calendar-de.js
cacti-0.8.7g/include/jscalendar/lang/calendar-hr.js
cacti-0.8.7g/include/jscalendar/lang/calendar-hu.js
cacti-0.8.7g/include/jscalendar/lang/calendar-ca.js
cacti-0.8.7g/include/jscalendar/lang/calendar-he-utf8.js
cacti-0.8.7g/include/jscalendar/lang/calendar-zh.js
cacti-0.8.7g/include/jscalendar/lang/calendar-big5-utf8.js
cacti-0.8.7g/include/jscalendar/lang/calendar-ko-utf8.js
cacti-0.8.7g/include/jscalendar/lang/calendar-pl-utf8.js
cacti-0.8.7g/include/jscalendar/calendar.js
cacti-0.8.7g/include/jscalendar/calendar-setup.js
cacti-0.8.7g/include/global_constants.php
cacti-0.8.7g/include/global_arrays.php
cacti-0.8.7g/include/zoom.js
cacti-0.8.7g/graph_image.php
cacti-0.8.7g/gprint_presets.php
cacti-0.8.7g/script_server.php
cacti-0.8.7g/rra/
cacti-0.8.7g/rra/.htaccess
cacti-0.8.7g/data_sources.php
cacti-0.8.7g/cdef.php
cacti-0.8.7g/resource/
cacti-0.8.7g/resource/snmp_queries/
cacti-0.8.7g/resource/snmp_queries/netware_disk.xml
cacti-0.8.7g/resource/snmp_queries/host_disk.xml
cacti-0.8.7g/resource/snmp_queries/interface.xml
cacti-0.8.7g/resource/snmp_queries/net-snmp_disk.xml
cacti-0.8.7g/resource/snmp_queries/netware_cpu.xml
cacti-0.8.7g/resource/snmp_queries/kbridge.xml
cacti-0.8.7g/resource/script_server/
cacti-0.8.7g/resource/script_server/host_disk.xml
cacti-0.8.7g/resource/script_server/host_cpu.xml
cacti-0.8.7g/resource/script_queries/
cacti-0.8.7g/resource/script_queries/unix_disk.xml
cacti-0.8.7g/resource/script_queries/host_disk.xml
cacti-0.8.7g/resource/script_queries/host_cpu.xml
cacti-0.8.7g/data_templates.php
cacti-0.8.7g/index.php
cacti-0.8.7g/about.php
cacti-0.8.7g/auth_login.php
cacti-0.8.7g/tree.php
cacti-0.8.7g/rra.php
cacti-0.8.7g/graph_xport.php
cacti-0.8.7g/data_queries.php
[root@testme html]# ln -s /var/www/html/cacti-0.8.7g /var/www/html/cacti
[root@testme html]# chown -R apache:apache /var/www/html/cacti*
[root@testme html]# mysql -u root -p cacti < /var/www/html/cacti/cacti.sql
Enter password:
[root@testme html]# mysql -u root -p cacti -e “show tables;”
Enter password:
+—————————+
| Tables_in_cacti           |
+—————————+
| cdef                      |
| cdef_items                |
| colors                    |
| data_input                |
| data_input_data           |
| data_input_fields         |
| data_local                |
| data_template             |
| data_template_data        |
| data_template_data_rra    |
| data_template_rrd         |
| graph_local               |
| graph_template_input      |
| graph_template_input_defs |
| graph_templates           |
| graph_templates_gprint    |
| graph_templates_graph     |
| graph_templates_item      |
| graph_tree                |
| graph_tree_items          |
| host                      |
| host_graph                |
| host_snmp_cache           |
| host_snmp_query           |
| host_template             |
| host_template_graph       |
| host_template_snmp_query  |
| poller                    |
| poller_command            |
| poller_item               |
| poller_output             |
| poller_reindex            |
| poller_time               |
| rra                       |
| rra_cf                    |
| settings                  |
| settings_graphs           |
| settings_tree             |
| snmp_query                |
| snmp_query_graph          |
| snmp_query_graph_rrd      |
| snmp_query_graph_rrd_sv   |
| snmp_query_graph_sv       |
| user_auth                 |
| user_auth_perms           |
| user_auth_realm           |
| user_log                  |
| version                   |
+—————————+
[root@testme html]# useradd cacti
[root@testme html]# passwd cacti
Changing password for user cacti.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@testme html]# crontab -e -u cacti
no crontab for cacti – using an empty one
crontab: installing new crontab
[root@testme html]# crontab -l -u cacti
*/5 * * * * php /var/www/html/cacti/poller.php > /dev/null 2>&1
[root@testme html]# chown -R cacti /var/www/html/cacti/rra* /var/www/html/cacti/log*
[root@testme html]# vi /var/www/html/cacti/include/config.php
[root@testme html]# cat /var/www/html/cacti/include/config.php
<?php
/*
+————————————————————————-+
| Copyright (C) 2004-2010 The Cacti Group                                 |
|                                                                         |
| This program is free software; you can redistribute it and/or           |
| modify it under the terms of the GNU General Public License             |
| as published by the Free Software Foundation; either version 2          |
| of the License, or (at your option) any later version.                  |
|                                                                         |
| This program is distributed in the hope that it will be useful,         |
| but WITHOUT ANY WARRANTY; without even the implied warranty of          |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           |
| GNU General Public License for more details.                            |
+————————————————————————-+
| Cacti: The Complete RRDTool-based Graphing Solution                     |
+————————————————————————-+
| This code is designed, written, and maintained by the Cacti Group. See  |
| about.php and/or the AUTHORS file for specific developer information.   |
+————————————————————————-+
| http://www.cacti.net/                                                   |
+————————————————————————-+
*/

/* make sure these values refect your actual database/host/user/password */
$database_type = “mysql”;
$database_default = “cacti”;
$database_hostname = “127.0.0.1″;
$database_username = “cacti”;
$database_password = “password”;
$database_port = “3306″;

/* Default session name – Session name must contain alpha characters */
#$cacti_session_name = “Cacti”;

?>
[root@testme html]# netstat -ntlp | grep :80
tcp        0      0 :::80                       :::*                        LISTEN      1084/httpd

  1. Hey Bro,

    Minus switching up some commands, is this as straight forward on a Debian system?

    • Ya, obviously the yum will be apt-get and those package names will differ a bit. Also, the init scripts and chkconfig will be different, but everything after that should be identical. Give me a shout if you need help!

  2. sudo rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm

    I needed to add the EPEL repository (command above) to get the rrd-tool package. If you want to do Cacti + Spine (recommended) you need this line:

    sudo yum install httpd php php-mysql php-snmp php-xml mysql mysql-server net-snmp net-snmp-utils rrdtool gcc mysql-devel net-snmp-devel

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>