Cacti默認輪詢器cmd.php執行效率有點低,spine爲C語言編寫的組件,性能要好許多。php
編譯安裝spine需如下軟件支持:1 net-snmp-devel
2 mysql
3 mysql-devel
4 openssl-devel
5 gccmysql
1 cd /usr/local/src/
2 wget http://www.cacti.net/downloads/spine/cacti-spine-0.8.8b.tar.gz
3 tar -zxvf cacti-spine-0.8.8b.tar.gz
4 cd cacti-spine-0.8.8bsql
5 ./configure
數據庫
6 make && make instatllide
DB_Host localhost
DB_Database cacti
DB_User root
DB_Pass cacti
DB_Port 3306
性能
# /usr/local/spine/bin/spine .net
SPINE: Using spine config file [/etc/spine.conf]ssl
SPINE: Version 0.8.8b startingget
SPINE: Time: 1.1542 s, Threads: 5, Hosts: 2cmd
說明:spine默認配置文件須要放在/etc纔會生效,不然報以下錯誤: SPINE: Poller[0] FATAL: Unable to read configuration file! (Spine init)