由于cmd.php不能满足项目需求,用spine替换掉
1.下载Cacti-spine最新版本,(要同使用的cacti版本相匹配)
下载地址:http://www.cacti.net/downloads/spine/
2.由于安装spine,测试中发现,执行—with-snmp= /usr/include/net-snmp/报“error: Cannot find UCD-SNMP libraries(snmp)”这个错误,最后只能卸载之前用yum安装的net-snmp
a.卸载net-snmp
[root@cacti soft]#yum list |grep net-snmp
[root@cacti soft]#yum remove net-snmp
b.安装net-snmp源包
下载地址:http://sourceforge.net/projects/net-snmp/files/net-snmp/5.4.3/
[root@cacti soft]#tar zxvf net-snmp-5.4.3.tar.gz
[root@cacti soft]#cd net-snmp-5.4.3
[root@cacti net-snmp-5.4.3]#./configure --prefix=/usr/local/net-snmp
[root@cacti net-snmp-5.4.3]#make ;make install
[root@cacti net-snmp-5.4.3]#cp EXAMPLE.conf /usr/local/net-snmp/share/snmp/snmpd.conf
[root@cacti net-snmp-5.4.3]#ln -s /usr/local/net-snmp/bin/* /usr/local/bin/
[root@cactinet-snmp-5.4.3]#/usr/local/net-snmp/sbin/snmpd -c /usr/local/net-snmp/share/snmp/snmpd.conf
[root@cactinet-snmp-5.4.3]#echo“/usr/local/net-snmp/sbin/snmpd /usr/local/net-snmp/share/snmp/snmpd.conf ”>>/etc/rc.local
3.安装spine
[root@cacti soft]#wget http://www.cacti.net/downloads/spine/cacti-spine-0.8.7g.tar.gz
[root@cacti soft]#tar zxvf cacti-spine-0.8.7g.tar.gz
[root@cacti soft]#cd cacti-spine-0.8.7g
[root@cacticacti-spine-0.8.7g]#./configure --prefix=/usr/local/cacti-spine --with-snmp=/usr/local/net-snmp
[root@cacti cacti-spine-0.8.7g]#make && make install
[root@cacti cacti-spine-0.8.7g]#cd /usr/local/cacti-spine/etc/
[root@cacti etc]#cp spine.conf.dist spine.conf
[root@cacti etc]#vi spine.conf
[root@cacti etc]#service httpd restarat
[root@cacti etc]#crontab -e(设置轮询刷新时间)
接着在cacti页面上面设置poller选择spine,如下图设置
这样就结束了.