安装cacti的主程序
[root@cacti software]# tar -zxvf cacti-0.8.7g.tar.gz -C /var/www/html/
[root@cacti software]# cd /var/www/html/
[root@cacti html]# mv cacti-0.8.7g/ cacti
[root@cacti html]# service snmpd start
[root@cacti html]# chkconfig snmpd on
[root@cacti html]# vim /etc/snmp/snmpd.conf
添加一行view systemview included .1.3.6.1.2.1.25.1.6 /////使能监控tcp流量
编辑计划任务
[root@cacti html]# crontab -e
*/5 * * * * php/var/www/html/cacti/poller.php >/dev/null 2>&1
导入数据库
[root@cacti html]# mysql -u root -p cacti</var/www/html/cacti/cacti.sql
输入mysql管理员口令
编辑cacti连接数据库的文件
[root@cacti html]# vim cacti/include/config.php
29 $database_username = "cacti";
30 $database_password = "cacti";
新建一个用户cacti,口令也为cacti
[root@cacti html]# useradd cacti
[root@cacti html]# passwd cacti
[root@cacti html]# cd cacti/
[root@cacti cacti]# chown -R cacti rra log
此时就可以通过页面登录cacti了,用户和口令都为admin






