Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1228338
  • 博文数量: 135
  • 博客积分: 10576
  • 博客等级: 上将
  • 技术积分: 1670
  • 用 户 组: 普通用户
  • 注册时间: 2008-06-11 20:49
个人简介

不疯魔,不成活! --疯魔老杨(Crazy.LaoYang) http://www.inotes.cn/

文章分类

全部博文(135)

文章存档

2014年(4)

2012年(13)

2011年(5)

2010年(30)

2009年(56)

2008年(27)

分类: LINUX

2009-11-17 22:46:22

个人笔记:Cacti 0.8.7e插件成功安装之:weathermap
源自:杨志刚博客 (http://yangzhigang.cublog.cn)
 
//下载、解压Weathermap到相应目录
(Weathermap下载  )
[root@centos53 /]# cd /usr/local/src/
[root@centos53 src]# wget
[root@centos53 src]# unzip php-weathermap-0.96a.zip -d /var/www/cacti/plugins/
 
//激活Weathermap
进入[Console]-[Configuration]-[plug Management],可以见到weathermap的Status为:Old Plugin Architecture。说明weathermap还没有运行。
[root@centos53 /]# vi /var/www/cacti/include/global.php
.....
$plugins = array();
$plugins[] = 'weathermap';
.....
之后,再进入[Console]-[Configuration]-[plug Management],可以见到weathermap的Status为:Old Plugin Architecture-Running。说明weathermap已经运行。同时也可以见到[weathermap]的标签了,在[console]-[Utilities]-[User Management],admin用户的Realm Permissions中也多了Plugin -> Weathermap: Configure/Manage 和Plugin -> Weathermap: View 两项,并已经选定。

//配置
在[Weathermap]中,没有任何图,要进行一下配置。
进行[Console]-[Weathermaps],之后“ADD”,发现系统默认有两个“Available Weathermap Configuration Files”为.htaccess和simple.conf。
将simple.conf进行"ADD"操作,并确认期Active为:yes。之后“Recalculate All Maps Now”,YES解认。
再次回到[Weathermap]中,发现test中"this map hasn't been create yet.",等一会吧。
 
那么如何edit自己的图呢?在[weathermap]签中,点“Powered by --- | Local Documentation | ”中的Editor。
 
发现又出了问题。Editor窗口中提示:“ Required PHP extensions are not present in your mod_php/ISAPI PHP module. Please check your PHP setup to ensure you have the GD extension installed and enabled.”说明GD没有安装等问题。
 
//安装GD
[root@centos53 /]# yum list | grep php-gd
php-gd.i386                   5.1.6-23.2.el5_3            base
 
[root@centos53 /]# yum -y install php-gd
[root@centos53 /]# service httpd restart
之后,再刷新“”窗口,可见Welcome的内容,可以Create A new Map、OR Create A New Map as a copy of an existing map、OR Open An Existing Map了。
但是还有关于权限的提示,进行以下操作后,再刷新一下,就一切OK了。
[root@centos53 plugins]# chmod 777 -R weathermap/
 
另:还可以安装一下支持更多图形等的包,如:
[root@centos53 plugins]# yum list | grep php
[root@centos53 plugins]# yum -y install php-jpgraph graphviz-php php-adodb php-mbstring php-xml
之后,重启动httpd。
 
//绘图
在editor(窗口)中,就可以开绘制、设计自己的图了。
之后,在[console]M-[Management]-[weathermap]中“ADD”所绘制的图,并“Recalulate”。
阅读(6932) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~