4月 262010
 

DownLoad

Plugin Architecture

解凍

cd /usr/local/src
unzip cacti-plugin-0.8.7e-PA-v2.6.zip

パッチ適用

[root@localhost cacti]# patch -p1 -N < /usr/local/src/cacti-plugin-arch/cacti-plugin-0.8.7e-PA-v2.6.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
Hunk #1 succeeded at 98 (offset -2 lines).
Hunk #3 succeeded at 246 (offset -2 lines).
patching file graphs_new.php
patching file graphs.php
patching file host.php
patching file include/auth.php
patching file include/bottom_footer.php
patching file include/global_arrays.php
Hunk #2 succeeded at 643 (offset -4 lines).
patching file include/global_constants.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
Hunk #2 FAILED at 55.
Hunk #5 FAILED at 128.
Hunk #6 FAILED at 156.
3 out of 6 hunks FAILED -- saving rejects to file include/top_graph_header.php.rej
patching file include/top_header.php
patching file index.php
patching file lib/api_device.php
patching file lib/auth.php
patching file lib/functions.php
patching file lib/html_form.php
Hunk #1 succeeded at 655 (offset -67 lines).
Hunk #3 succeeded at 693 (offset -67 lines).
patching file lib/html.php
patching file lib/plugins.php
patching file lib/poller.php
patching file lib/rrd.php
patching file lib/variables.php
patching file plugins/index.php
patching file plugins.php
patching file poller.php
patching file user_admin.php
patching file utilities.php

以下のエラーが出る

patching file include/top_graph_header.php
Hunk #2 FAILED at 55.
Hunk #5 FAILED at 128.
Hunk #6 FAILED at 156.
3 out of 6 hunks FAILED -- saving rejects to file include/top_graph_header.php.rej

ソースに添付されている原本を直接上書きコピーする

cp /usr/local/src/cacti-plugin-arch/files-0.8.7e/include/top_graph_header.php /var/www/cacti/include/

SQL実行

mysql -p mycactidb < /usr/local/src/cacti-plugin-arch/pa.sql

プラグイン展開

cd /var/www/cacti/plugins
tar -zxf /usr/local/src/monitor-0.8.2.tar.gz
tar -zxf /usr/local/src/settings-0.5.tar.gz
tar -zxf /usr/local/src/thold-0.4.1.tar.gz

SQL実行

mysql -p mycactidb < monitor/monitor.sql

※注意
 tholdはPlugin Managerからインストールを行うのでSQL実行は行わない

プラグイン有効化

/var/www/cacti/include/config.php

$plugins = array();
$plugins[] = 'monitor';
$plugins[] = 'settings';
$plugins[] = 'thold';

ユーザ権限変更

User Management→admin→Plugin Management を有効
Plugin Management →thold→Install
Plugin Management →thold→Enable

メニュータブが出ればOK

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>