langkah – langkah nya sebagai berikut :
1. buat revo baru dengan nama dag.repo :
vi /etc/yum.repos.d/dag.repo
kemudian isi kan file berikut didalam nya.
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el5/en/i386/dag
gpgcheck=1
gpgkey=http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
enabled=1
2. install php , apache , mysql dan snmp
yum install php httpd mysql mysql-server php-mysql vim-enhanced net-snmp
3. install cacti
wget http://www.cacti.net/downloads/cacti-0.8.7e.tar.gz
tar xzvf cacti-0.8.7e.tar.gz
mv cacti-0.8.7e cacti
mv cacti /var/www/html
4. kemudian buat cactiuser dan group nya
/usr/sbin/groupadd cacti
/usr/sbin/useradd -g cacti cactiuser
passwd cactiuser
5. ganti ownership dari /var/www/html/cacti/rra/ dan /var/www/html/cacti/log/ directories ke cactiuser yang telah di buat
cd /var/www/html/cacti
chown -R cactiuser rra/ log/
6. buat mysql password misal : pass = 12345
/usr/bin/mysqladmin -u root password 12345
7. buat database cacti nya
mysqladmin –user=root –password=12345 create cacti
8. import database
cd /var/www/html/cacti
mysql –user=root –password=12345 cacti < cacti.sql 9. masuk ke mysql mysql –user=root –password=12345 mysql> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY ‘12345’;
flush privileges;
10. kemudian edit confg DB cacti nya
vi /var/www/html/cacti/include/config.php
/* make sure these values refect your actual database/host/user/password */
$database_type = “mysql”;
$database_default = “cacti”;
$database_hostname = “localhost”;
$database_username = “cactiuser”;
$database_password = “12345”;
$database_port = “3306”;
11. kemudian buat cron untuk cacti
vi /etc/crontab
masukan
*/5 * * * * cactiuser /usr/bin/php /var/www/html/cacti/poller.php > /dev/null 2>&1
12 . edit php.ini >> ganti memory_limit jadi 128 M
vi /etc/php.ini
13. install rddtool
yum install rrdtool
14. restart service
/etc/init.d/mysqld restart
/etc/init.d/httpd restart
15. test akses cacti nya
http://ipaddrs/cacti
user : admin
pass : admin
sumber : http://www.linux.com/learn/tutorials/38270-installing-cacti-on-centos-5