プラグインインストール
プラグインを利用するためには、プラグインを利用するための「Plugin Architecture」と呼ばれるパッチを適用する必要があります。このパッチはパッケージ化されていないため、手動でダウンロード・適用する必要があります。
また、プラグインを利用する場合は、Cacti のインストールをパッケージから行わずに直接配置した方が簡単に適用できます。
※現状 0.8.7 系ではプラグインを利用するためにプラグインアーキテクチャというパッケージ(パッチ)をインストールする必要がありますが、0.8.8(2008年3Qリリース予定) からは Cacti 自体に組み込まれる予定です。
Plugin Architecture のダウンロード
下記のページから Plugin Architecture をダウンロード
http://cactiusers.org/downloads/patches/
$ cd <適当な作業用ディレクトリ> $ wget http://cactiusers.org/downloads/cacti-plugin-arch.zip
Plugin Architecture の適用
$ unzip cacti-plugin-arch.zip
※インストールの詳細は展開した中にある Readme.txt を参照
※または、下記のページを参照
http://cactiusers.org/wiki/PluginArchitectureInstall
- パッチファイルのコピー
Debian にて Cacti のコンテンツがインストールされるのは /usr/share/cacti/siteなので、ここに、プラグイン用のパッチをコピーする。
# cp cacti-plugin-0.8.7a-PA-v1.4.diff
- パッチの適用
# patch -p1 -N < cacti-plugin-0.8.7a-PA-v1.4.diff
patching file auth_changepassword.php
patching file auth_login.php
patching file data_sources.php
patching file graph_image.php
patching file graph.php
patching file graphs_new.php
patching file graphs.php
patching file host.php
patching file include/auth.php
patching file include/global_arrays.php
patching file include/global_form.php
patching file include/global.php
patching file include/global_settings.php
patching file include/plugins.php
patching file include/top_graph_header.php
patching file include/top_header.php
patching file index.php
patching file lib/api_device.php
patching file lib/functions.php
Hunk #1 succeeded at 1528 (offset 52 lines).
Hunk #3 succeeded at 1618 (offset 52 lines).
patching file lib/html_form.php
patching file lib/html.php
patching file lib/html_tree.php
patching file lib/poller.php
patching file lib/rrd.php
patching file lib/variables.php
patching file plugins/index.php
patching file poller.php
patching file user_admin.php
patching file utilities.php
- Config ファイルの修正
# cd /var/www/cacti/include # vi global.php 下記の行を見つけて、実際のパスを入力する(/cacti/)など $config['url_path'] = '/';