본문 바로가기

리눅스

[리눅스] Cacti Install Guide CentOS6(64bit)

반응형

YUM Cacti Install Guide CentOS6 64bit

 

Installing Apache

[root@test12 ~]# yum install httpd httpd-devel

 

Install MySQL

[root@test12 ~]# yum install mysql mysql-server

 

Install PHP

[root@test12 ~]# yum install php-mysql php-pear php-common php-gd php-devel php php-mbstring php-cli php-mysql

 

Install PHP-SNMP

[root@test12 ~]# yum install php-snmp

 

Install NET-SNMP

[root@test12 ~]# yum install net-snmp-utils p net-snmp-libs php-pear-Net-SMTP

 

Install RRDTool

[root@test12 ~]# yum install rrdtool

 

Install UnZip

[root@test12 ~]# yum install unzip

 

[root@test12 ~]# mysqladmin -u root password Password1!

 

[root@test12 ~]# mysql -u root -p

create database cacti;

GRANT ALL ON cacti.* TO cacti@localhost IDENTIFIED BY "Password1!";

FLUSH privileges;

quit;

 

mysql> create database cacti;

Query OK, 1 row affected (0.02 sec)

 

mysql> GRANT ALL ON cacti.* TO cacti@localhost IDENTIFIED BY "Password1!";

Query OK, 0 rows affected (0.01 sec)

 

mysql> FLUSH privileges;

Query OK, 0 rows affected (0.00 sec)

 

mysql> quit;

Bye

 

[root@test12 ~]# mysql -u cacti -p cacti < /usr/share/doc/cacti-0.8.8b/cacti.sql

Enter password:

 

[root@test12 ~]# vi /etc/cacti/db.php

 

[root@test12 ~]# vi /etc/httpd/conf.d/cacti.conf

 

[root@test12 ~]# vi /etc/cron.d/cacti

*/5 * * * *         cacti     /usr/bin/php /usr/share/cacti/poller.php > /dev/null 2>&1

 

 

 

원본URL : http://forums.cacti.net/viewtopic.php?f=6&t=49363

 

728x90
반응형