#Install snmp
直接yum install net-snmp*
配置根据需要修改key即可,略过。。。
#Install CACTI
tar zxvf cacti-0.8.7e-cn-utf8.tar.gz
mv cacti-0.8.7e-cn-utf8/ .
mysql -uroot -ppasswd
create database cacti default character set utf8;
GRANT SELECT, INSERT, UPDATE, DELETE, INDEX, ALTER, CREATE, LOCK TABLES, CREATE TEMPORARY TABLES, DROP, REFERENCES ON cacti.* TO IDENTIFIED BY 'passwd';
flush privileges;
\q
cd /var/www/cacti
mysql -u cacti -p cacti < cacti.sql
修改配置文件
vi /var/www/cacti/include/config.php
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cacti";
$database_password = "passwd";
$database_port = "3306";
useradd cacti -d /var/www/cacti -s /bin/false
chown -R cacti /var/www/cacti/rra /var/www/cacti/log
vi /etc/crontab
*/5 * * * * cacti /usr/local/php/bin/php /var/www/cacti/poller.php &>/dev/null
cacti使用待续。。。。。。
阅读(1456) | 评论(0) | 转发(0) |