1、关闭防火墙和selinux
[root@Cacti ~]#service iptables stop
[root@Cacti ~]#chkconfig iptables off
[root@Cacti ~]#vi /etc/sysconfig/selinux //把SELINUX=enforcing改为SELINUX=disabled
[root@Cacti ~]#reboot //重启一下系统
2、安装Cacti依赖的软件
[root@Cacti ~]#yum -y install mysql mysql-server mysql-devel httpd php php-pdo php-snmp php-mysql lm_sensors net-snmp net-snmp-utils net-snmp-libs rdtool rrdtool-devel perl-PlRPC perl-DBI perl-rrdtool perl-DBD-MySQL wget vim epel*
3、装好依赖软件之后,snmp有3个地方需要配置一下
[root@Cacti ~]#vi /etc/snmp/snmpd.conf
第41行:将 com2sec notConfigUser default public 中的 "default" 改为 "监控端服务器ip"
第62行:将 access notConfigGroup "" any noauth exact systemview none none 中的 "systemview" 改为 "all"
第85行:将 #view all include .1 80 这一行前面的 # 号去掉
4、httpd有一个地方需要配置
[root@Cacti ~]#vi /etc/httpd/conf/httpd.conf
第276行 找到#ServerName www.example.com:80<