部署snmp:yum -y install net-snmp net-snmp-utils
(service snmpd start 部署后的启动)
部署PHP和数据库:yum -y install httpd MysqL MysqL-server MysqL-devel PHP PHP-MysqL
service httpd start 部署后的启动)
service MysqLd start部署后的启动)
部署rrd(轮询数据):yum -y install rrdtool
安装cacti
#tar xf cacti-0.8.7g.tar.gz -C /var/www/html/
5.创建数据库
# MysqL
MysqL> create database cacti;
MysqL> grant all on cacti.* to'cactiuser'@'localhost'identified by '123456';
MysqL> flush privileges;
MysqL> exit
6.进行授权
# chown -R root:root /var/www/html/cacti/
# useradd cacti
# chown -R cacti:cacti /var/www/html/cacti/log/
# chown -R cacti:cacti /var/www/html/cacti/rra/
7.在浏览器输入http://IP/cacti/install/,进入cacti安装向导 (这里的端口默认是80,可以在vim /etc/httpd/conf/httpd.conf里面修改端口)
8.相关配置待续