编译安装rrdtool:
tar zxvf rrdtool-1.4.7.tar.gz
cd rrdtool-1.4.7
./configure --prxfix=/usr/local/rrdtool
make
make install
cd ..
安装spine //原来cacti的spine是在/usr/local下编译安装的,要保持一致。
#cd /usr/local
#wget http://www.cacti.net/downloads/spine/cacti-spine-0.8.7g.tar.gz
tar xvzf cacti-spine-0.8.7g.tar.gz
cd cacti-spine-0.8.7g
./configure
make
make install
默认安装在/usr/local/spine/目录下,复制一份spine的配置文件。
cd /usr/local/spine/etc/
cp spine.conf.dist spine.conf
先建好这4个数据库。cacti源主机的编码是默认编码latin1.所以目标机也直接默认编码。
>create database cacti|mysql|nconf|syslog;//不用再设定编码方式。
#mysql -uroot -p cacti update user_auth set password=md5("www.cnyunwei.com") where id='1';
mysql> flush privileges;
mysql> quit;
4,配置snmpd文件
####
# First, map the community name "public" into a "security name"
# sec.name source community
com2sec notConfigUser 127.0.0.1 public
####
# Second, map the security name into a group name:
# groupName securityModel securityName
group notConfigGroup v1 notConfigUser
group notConfigGroup v2c notConfigUser
####
# Third, create a view for us to let the group have rights to:
# Make at least snmpwalk -v 1 localhost -c public system fast again.
# name incl/excl subtree mask(optional)
view systemview included .1.3.6.1.2.1.1
view systemview included .1.3.6.1.2.1.25.1.1
####
# Finally, grant the group read-only access to the systemview view.
# group context sec.model sec.level prefix read write notif
access notConfigGroup "" any noauth exact all none none