OS:CentOS 5.5
Requirement:
httpd
php php-mysql php-snmp php-gd
mysql mysql-server
cacti
1. 安裝相依套件
yum install httpd php php-mysql mysql mysql-server
2. 安裝Cacti
rpm -ivh http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
yum install cacti*
3. 建立cacti使用的資料庫
service mysqld start
mysqladmin -u root password '管理者密碼'
mysql -u root -p
create database cacit;
quit
mysql -u root -p cacti < /var/www/cacti/cacti.sql
mysql -u root -p
grant all on cacti.* to cacti@localhost identified by 'cacti';
flush privileges;
quit
4. 配置cacti組態檔
vi /var/www/cacti/include/config.php
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cacti";
$database_password = "cacti";
5. 開啟瀏覽器,安裝cacti
http://localhost/cacti/
6. 檢視相關設定是否正確
7. 登入(預設 admin/admin),第一次登入會強制更改密碼
參考文章:
http://cacti.xxoo.net/
http://actychen.blogspot.com/2007/11/cacti-server.html
沒有留言:
張貼留言