LoginSignup
5
5

More than 5 years have passed since last update.

Cactiのバージョンアップをしたメモ

Last updated at Posted at 2014-01-18

cactiに必要なソフト

  • cacti
  • snmp
  • rrdtool
  • mysql (cactiの設定情報を保持。rrdtoolの結果はrraフォルダの.rrdファイルに格納されています。)
  • php
  • apache

tar.gzを解凍してページにアクセスすると、バージョンアップウィザードが起動する。
旧rraフォルダの中身をコピーしておく。

設定ファイル修正

  • include/config.php
    • mysqlの接続情報
    • $url_path = "/cacti/"; //ページの相対パス

htmlのexportディレクトリ作成

  • html_exportなりディレクトリを作成しておき、cactiユーザー権限を付与。

ディレクトリの権限

  • rralogディレクトリをcactiユーザー権限を付与。

cron登録

cactiユーザーにて実行
*/5 * * * * /usr/bin/php /var/www/cacti/poller.php > /dev/null 2>&1

設定画面で便利なリンク

  • System Utilities -> Technical Support を開くと、設定でまずい箇所を赤文字表示してくれます。
  • System Utilities -> View Cacti Log File を開いて赤色のエラーが出ていないことを確認。   EXPORT FATAL ERROR: Export path '' does not exist! Export can not continue.

設定後にディレクトリを変更したい場合

  • mysqlのデータベース -> settingsテーブルのpath_webrootカラム値を修正。

plugin

5
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5