您的位置:首页 > 其它

Cacti插件详解之――Weathermap(1)

2014-03-08 21:38 405 查看
本文转自http://www.cactifans.org/index.php/2...A3-weathermap/
Weathermap是cacti中大家最用的一个插件之一,用它可以画出漂亮的网络拓扑
图!同时Weathermap也是一个独立工具,可以独立部署,不需要cacti的支持,也可以部
署.下面首先来看一看用Weathermap画出来的拓扑图.









这些漂亮的网络拓扑都是用weathermap画出来的!
这么长时间了没有发出来,今天就写以下weathermap的用法,以下都是我自己的理解,如有错误之处请谅解!


weathermap是用来做网络拓扑图的,其中可以调用mrtg和cacti的流量图,可以生成静态的html页面。具体的例子大家可以中国科大的这个http://linux.ustc.edu.cn/
weathermap的官方网站为 http://www.network-weathermap.com/ weathermap有二种用法。第一种就是作为cacti的插件使用,第二种就是独立出来,可以独立安装一个weathermapm,当然要php,php-gd支持,weathermap最新版本为weathermap-0.97a.

一.weathermap作为cacti插件的用法

1.安装weathermap插件

代码:
wget http://www.network-weathermap.com/fi...rmap-0.97a.zip unzip php-weathermap-0.97a.zip mv weathermap/ /var/www/html/plugins/ (cactu的安装目录为/var/www/html/) chown -R apache:apache /var/www/html/plugins/weathermap/configs/ chown -R apache:apache /var/www/html/plugins/weathermap/output/
下面我们打开cacti,点console――Plugin Management,就可以看到weathermap了,点前面那个点就可以安装weathermap



点击安装weathermap后



至此,weathermap已经安装成功。

2.配置使用weathermap

安装好weathermap后,看到点Console在左边的列表里会看到weathermap的菜单,我们点击,会看到设置,因为我们还没有定义一个weathermap配置文件,所以我们点右上角的Add按钮,添加一个weathermap配置文件



点击Add之后,我们看到有二个文件,其实这个时候调用的就是weathermap的configs目录下的文件,simple.conf就是自带的一个配置文件,我们可以点击它前面的Add按钮,把他添加到默认配置文件里



至此我们添加了一个weathermap的配置文件,下面就是对weathermap进行配置了,点击weathermap,然后点击Editor对默认图形配置文件进行配置。



点击editor后我们会看到如下提示
代码:
The editor has not been enabled yet. You need to set ENABLED=true at the top of editor.php  Before you do that, you should consider using FilesMatch (in Apache) or similar to limit who can access the editor. There is more information in the install guide section of the manual.
我们按照他提示的编辑editor.php

代码:
vi /var/www/html/plugins/weathermap/editor.php
本文出自 “Professor哥” 博客,请务必保留此出处http://professor.blog.51cto.com/996189/1572509
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: