cactiでspineを使う

cactiでspineを使うにはspineをインストールする必要がある

cacti-spineのインストールに必要なdevelをインストール

# yum install net-snmp-devel mysql-devel openssl-devel

cacti-spineのインストール
デフォルトだとspineの実行ファイルが/usr/local/spine/bin/にインストールされる

# cd /usr/local/src
# wget http://www.cacti.net/downloads/spine/cacti-spine-0.8.8b.tar.gz
# tar -zxvf cacti-spine-0.8.7e.tar.gz
# cd cacti-spine-0.8.7e
# ./configure
# make
# make install

cacti-spineのDB接続設定
自分のcactiの設定に合わせて適宜変更

# vi /usr/local/spine/etc/spine.conf
DB_Host localhost
DB_Database cacti
DB_User データベースのユーザ名
DB_Pass データベースのパスワード
DB_Port 3306

cactiでspineを適用する
CONSOLE - Configuration - Settings - Paths - Alternate Poller File Path
/usr/local/spine/bin/spine
と入力して「SAVE」ボタンを押下
※「OK: FILE FOUND」になれば成功、出なければパスが間違っている
CONSOLE - Configuration - Settings - Poller - Poller Type
spine
に変更して押下