2016/05/14

Cacti Plugin Realtime 安裝方法

個人筆記:Cacti 0.8.7e插件成功安裝之:realtime
源自:楊志剛博客 (
http://yangzhigang.cublog.cn
)

前言:
繼《個人筆記:Cacti 0.8.7e插件成功安裝之:monitor、thold、settings》
http://blog.chinaunix.net/u2/71257/showart_2093517.html
一文之後,本文來記錄我成功安裝基本的插件(realtime)的步驟步驟.

小介紹:
Realtime,provides a method to view cacti graphs with a resolution of upto 5 seconds.

//下載、解壓realtime插件包
(在
http://docs.cacti.net/plugins
中下載最新的插件包)
[root@centos53 ~]# cd /usr/local/src
[root@centos53 src]# wget
http://docs.cacti.net/_media/plugin:realtime-0.4.0-1.tar.gz
[/url]
[root@centos53 src]# tar zxvf realtime-0.4.0-1.tar.gz

[url=http://docs.cacti.net/_media/plugin:settings-latest.tgz]

//MV 插件包到 cacti/plugins/下
[root@centos53 src]# mv realtime /var/www/cacti/plugins/

//install、enable plugins:realtime
登錄Cacti,進入[Console]-[configuration]-[Plugin Management],對plugin:realtime進行Install 和 Enable。

//給admin用戶授權
登錄Cacti,進行[Console]-[Utilities]-[User Management],點admin用戶,在[Realm Permissions]中我,勾選“Plugin->Realtime”。

//第一次驗證
此時,到[Graphs]中,找一個圖,可以發現在其右側已經出現“Realtime”的一個小Logo,但當點此logo進行realtime查看時,會發現彈出的窗口中顯示“The Image Cache Directory directory does not exist. Please first create it and set permissions and then attempt to open another realtime graph.”,提示出沒有Cache目錄以及權限等。

//設置Cache目錄及權限
在realtime插件包中的README中寫到:Create a folder somewhere on your system that is accessible to the apache user for writing.
在官網的文檔中對於Installation中也寫到:You need to also create a folder somewhere on you system that is accessible to the apache user for writing.This folder should bo different than other transient folders used by plugins as it will b periodically pruned by this plugin.
所以,還要做如下操作。
-----------原文修正後------------------
# mkdir /var/www/cacti/cache
# chmod 755 -R /var/www/cacti/cache/
# chcon -u system_u -t usr_t /var/www/cacti/cache
# chown apache:apache /var/www/cacti/cache

PS:權限控管要注意
---------------------------------------------

之後,還要login cacti,進入[console]-[configuration]-[settings]-[Misc],設置“Cache Diredtiory”為“​​/var/www/cacti/cache/”

//最終驗證
按上面“第一次驗證”的方法,驗證一下,我成功了,你呢?


1 則留言:

zanebonoquevedo 提到...

Borgata Hotel Casino & Spa (Borgata Hotel Casino & Spa)
Welcome to Borgata Hotel 강릉 출장마사지 Casino & Spa, a luxury casino 통영 출장샵 resort in Atlantic City, NJ. Enjoy 24/7 friendly 청주 출장샵 customer 밀양 출장안마 service and online booking. Rating: 4 · ‎14 reviews 동두천 출장안마