一.安装snmp服务
[root@test1 ~]# yum install net-snmp*
[root@test1 ~]# chkconfig snmpd on
[root@test1 ~]# service snmpd restart
[root@test1 ~]# vi /etc/snmp/snmpd.conf
修改如下内容:
41行下的 com2sec notConfigUser default public com2sec notConfigUser 127.0.0.1 public
62行下的access notConfigGroup "" any noauth exact systemview none none access notConfigGroup "" any noauth exact all none none
85行下的#view all included .1 80 view all included .1 80
[root@test1 ~]# service snmpd restart
二.安装rrdtool
[root@test1 ~]# tar xf rrdtool-1.4.7.tar.gz
[root@test1 ~]# cd rrdtool-1.4.7
[root@test1 rrdtool-1.4.7]# ./configure --prefix =/usr/local/rrdtool
[root@test1 rrdtool-1.4.7]# make && make install
三.安装cacti
[root@test1 ~]# tar xf cacti-0.8.8b.tar.gz -C /usr/local/apache/htdocs
[root@test1 ~]# cd /usr/local/apache/htdocs
[root@test1 ~]# cd /usr/local/apache/htdocs
[root@test1 ~]# mv cacti-0.8.8b cacti
进入数据库中创建一个cacti的数据库:
mysql> create database cacti;
mysql> grant all on cacti.* to cacti@localhost identified by ‘cacti‘;
mysql> grant all on cacti.* to cacti@127.0.0.1 identified by ‘cacti‘;
mysql> flush privileges;