Monday, March 11, 2013

Install Cacti for CentOS 6.3

Install Cacti in CentOS 6.3

First, install the rpmforge into your server repo from here

Now install package needed using yum
# yum install httpd php php-mysql php-snmp mysql mysql-server net-snmp
# yum install cacti

Now Edit the cacti
# cd /etc/httpd/conf.d
# vim cacti.conf
edit the allow from to suit your network

Now start up mysql
# /etc/init.d/mysqld start
For those just install mysql and havent setup yet, please setup using
# /usr/bin/mysql_secure_installation
and follow the guide show

Now lets create a database for cacti
# mysql -u root -p
> create database cacti;
> exit

Import the tables structure into mysql cacti database
# vim /var/www/cacti/cacti.sql
then put this above all command
     use cacti
save and exit
# mysql -u root -p < /var/www/cacti/cacti.sql

Then edit the php
# vim /var/www/cacti/include/config.php
key in the username and password for the mysql

$database_username = "root";
$database_password = "temp1234";

Now restart and start up the services
# /etc/init.d/mysqld restart
# /etc/init.d/httpd start
# /etc/init.d/snmpd start

Use browser to access your cacti
http://<your server IP>/cacti

Click "NEXT" for all
then login cacti interface using "admin" for both username and password
It will force you to change password after that

Congratz~ you are success install the Cacti server

No comments:

Post a Comment