Installing Cacti on CentOS 5.5

In this tutorial we will be installing Cacti on CentOS 5.5 using the LCMP stack (Linux, Cherokee, MySQL and PHP).

What is Cacti? Cacti is a complete network, server and application graphing solution harnessing the power of RRDtool OpenSource industry standard, high performance data logging and graphing.

So before we start just some general house keeping. The base CentOS 5.5 server hostname and IP address that we’ll be using in this tutorial:

* centos01.how2centos.com (IP 10.0.0.3)

The Cacti server will eventually be available on http://cacti.how2centos.com

The assumption, for this Cacti and CentOS 5.5 tutorial, is that you are running as root and have a medium understanding of the software required or you’re Awesome.

Install the RPMForge i386 YUM Repository

# rpm -Uvh http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.5.2-2.el5.rf.i386.rpm

Install the EPEL i386 YUM Repository

# rpm -Uvh http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

Install the IUS i386 YUM Repository

# rpm -Uvh http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/i386/ius-release-1.0-10.ius.el5.noarch.rpm

Install Cherokee web server

Install PHP 5.3

Install MySQL and MySQL Server

Install SNMP

Install Cacti

Configure snmpd, move snmpd.conf and create a new one. The ‘snmpuser’ is what you’ll use later in the Cacti interface.

Let make sure that everything is added to runlevels 2, 3, 4 and start them up.

Create ‘cacti’ MySQL database and grant privileges to ‘cactiuser’ with password ‘cactipassword’

Import the Cacti database schema

Configure Cacti with the details above.

Once all that has been done time to get PHP 5.3 working with Cherokee and then adding the Cacti virtual server.

Firstly lets get PHP 5.3 working with Cherokee

Finally add the Cacti virtual server and browser to the URL and follow the onscreen instuctions.