酷!學園

技術討論區 => Linux 討論版 => 主題作者是: Weran 於 2008-12-01 17:02

主題: 想請教cacti安裝Plugin Architecture一事
作者: Weran2008-12-01 17:02
cacti 安裝好後,皆能正常運作
接下來我安裝了Plugin Architecture
cacti 網頁就無法開啟

web server 正常
也修改了 /include/globe.php
$config['url_path'] = “ /”;

CACTI 還是無法開啟

這是我安裝Plugin Architecture的訊息

# patch -p1 -N < /cacti-plugin-0.8.7b-PA-v2.1.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
The next patch would create the file include/plugins.php,
which already exists!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file include/plugins.php.rej
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
patching file lib/html_form.php
patching file lib/html.php
patching file lib/html_tree.php
The next patch would create the file lib/plugins.php,
which already exists!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file lib/plugins.php.rej
patching file lib/poller.php
patching file lib/rrd.php
patching file lib/variables.php
The next patch would create the file plugins/index.php,
which already exists!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file plugins/index.php.rej
The next patch would create the file plugins.php,
which already exists!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file plugins.php.rej
patching file poller.php
patching file user_admin.php
patching file utilities.php


請各位指教一下!~~謝謝
主題: 回覆: 想請教cacti安裝Plugin Architecture一事
作者: 廉價勞工2008-12-01 17:19
能正常運作時的網址為何?

http://xxx.xxx.xxx.xxx/cacti 嗎?
主題: 回覆: 想請教cacti安裝Plugin Architecture一事
作者: Weran2008-12-01 17:22
能正常運作時的網址為何?

http://xxx.xxx.xxx.xxx/cacti 嗎?

正常運作網址

http://domain(或ip)/


 :)
主題: 回覆: 想請教cacti安裝Plugin Architecture一事
作者: 廉價勞工2008-12-01 17:27
你是設定成  $config['url_path'] = “ /”;    這樣嗎?

試試改成  $config['url_path'] = '/'  ;   單引號不是雙引號
主題: 回覆: 想請教cacti安裝Plugin Architecture一事
作者: Weran2008-12-01 17:34
你是設定成  $config['url_path'] = “ /”;    這樣嗎?

試試改成  $config['url_path'] = '/'  ;   單引號不是雙引號



原本是單引號!~ 後面我修改成雙引號!
 但不管是這兩個怎麼改還是一樣!
現在我改回單引號了!~

是一樣
謝謝指教 :D
主題: 回覆: 想請教cacti安裝Plugin Architecture一事
作者: 廉價勞工2008-12-01 17:38
出現 404 嗎? 還是其他錯誤?

apache log看一下 , 無法連線通常會有訊息在裡面

從中找出問題點
主題: 回覆: 想請教cacti安裝Plugin Architecture一事
作者: Weran2008-12-01 17:48
出現 404 嗎? 還是其他錯誤?

apache log看一下 , 無法連線通常會有訊息在裡面

從中找出問題點


錯誤出現是500
主題: 回覆: 想請教cacti安裝Plugin Architecture一事
作者: 廉價勞工2008-12-01 17:52
那apache 的 error log有看到什麼?
主題: 回覆: 想請教cacti安裝Plugin Architecture一事
作者: Weran2008-12-01 17:56
那apache 的 error log有看到什麼?

[Mon Dec 01 17:47:24 2008] [error] PHP Warning:  include_once() [<a href='function.include'>function.include</a>]: Failed opening '/var/www/cacti/lib/plugins.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/cacti/include/global.php on line 211

[Mon Dec 01 17:47:24 2008] [error]  PHP Warning:  include_once(/var/www/cacti/include/plugins.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: Permission denied in /var/www/cacti/include/global.php on line 212

[Mon Dec 01 17:47:24 2008] [error]  PHP Warning:  include_once() [<a href='function.include'>function.include</a>]: Failed opening '/var/www/cacti/include/plugins.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/cacti/include/global.php on line 212

[Mon Dec 01 17:47:24 2008] [error] PHP Fatal error:  Call to undefined function api_plugin_hook() in /var/www/cacti/include/global_arrays.php on line 620
主題: 回覆: 想請教cacti安裝Plugin Architecture一事
作者: keyword2008-12-02 13:46
節錄自 global.php
/*
   Edit this to point to the default URL of your Cacti install
   ex: if your cacti install as at http://serverip/cacti/ this
   would be set to /cacti/
*/

$config['url_path'] = '/cacti/';

上面說要按照你安裝的位置修改,我是裝在 /var/www/html/cacti 下
你看看是不是這個原因
主題: 回覆: 想請教cacti安裝Plugin Architecture一事
作者: 廉價勞工2008-12-02 14:41
他的路徑是 http://serverip/ 而已所以 $config['url_path'] = '/ ' ; 應該是沒問題
頂多是要檢查apache中DocumentRoot路徑是否正確指到cacti目錄 /var/www/cacti


不過看log顯示,應該是有地方path設錯,建議還是先弄個測試環境照預設路徑裝個幾次
等設定什麼都熟系再改路徑
主題: 回覆: 想請教cacti安裝Plugin Architecture一事
作者: hala56002008-12-04 23:03
如果你只是要有一台機器可以執行cacti的話,建議直接安裝cactiez,快速又簡單。

對不起多嘴了!
主題: 回覆: 想請教cacti安裝Plugin Architecture一事
作者: Weran2008-12-05 02:27
謝謝 伺教  :D

我把系統清空!~~
重新再架次看看  8)
主題: 回覆: 想請教cacti安裝Plugin Architecture一事
作者: acty2008-12-06 21:13
$config['url_path'] = '/cacti/';

這是指你 cacti 網頁的路徑, 如果 你的網頁是 http://xxx.xxx.xxx.xxx/abc

就設成 $config['url_path'] = '/abc/';  請依此列推