最近在Ubuntu14上安裝Cacti,安裝完之後大家都會建議再裝上Spine,因為我是用apt-get的方式安裝Cacti的所以我就不多說明,網路上的教學很多,目前遇到的主要是Spine的問題。按照官網及網路上的教學,在./configure都會出現這兩行錯誤訊息。
configure:3506: error: in `/opt/cacti-spine-0.8.8h':
configure:3508: error: C compiler cannot create executables
See `config.log' for more details
後來到Cacti的論壇找到了解決方法,主要是要安裝這個套件。
sudo apt-get build-dep cacti-spine
之後再執行./configure就可以了。另外在安裝完之後,要記得安裝路徑,因為要進Cacti設定。
安裝完並設定好之後,沒有資料進來,再查了一下資料發覺還要作兩件事。
1.將在/usr/local/spine/etc下的spine.conf.dist復製一份並改成/etc/spine.conf。
2.修改spine.conf,把有權限寫入mysql中cacti資料庫的帳、密Key入。