资讯

精准传达 • 有效沟通

从品牌网站建设到网络营销策划,从策略到执行的一站式服务

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

本文转自http://www.cactifans.org/index.php/2...A3-weathermap/
Weathermap是cacti中大家最用的一个插件之一,用它可以画出漂亮的网络拓扑
图!同时Weathermap也是一个独立工具,可以独立部署,不需要cacti的支持,也可以部
署.下面首先来看一看用Weathermap画出来的拓扑图.
Cacti插件详解之——Weathermap(1)
Cacti插件详解之——Weathermap(1)
Cacti插件详解之——Weathermap(1)
Cacti插件详解之——Weathermap(1)
这些漂亮的网络拓扑都是用weathermap画出来的!
这么长时间了没有发出来,今天就写以下weathermap的用法,以下都是我自己的理解,如有错误之处请谅解!Cacti插件详解之——Weathermap(1)
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
Cacti插件详解之——Weathermap(1)
点击安装weathermap后
Cacti插件详解之——Weathermap(1)
至此,weathermap已经安装成功。

2.配置使用weathermap

安装好weathermap后,看到点Console在左边的列表里会看到weathermap的菜单,我们点击,会看到设置,因为我们还没有定义一个weathermap配置文件,所以我们点右上角的Add按钮,添加一个weathermap配置文件
Cacti插件详解之——Weathermap(1)
点击Add之后,我们看到有二个文件,其实这个时候调用的就是weathermap的configs目录下的文件,simple.conf就是自带的一个配置文件,我们可以点击它前面的Add按钮,把他添加到默认配置文件里
Cacti插件详解之——Weathermap(1)
至此我们添加了一个weathermap的配置文件,下面就是对weathermap进行配置了,点击weathermap,然后点击Editor对默认图形配置文件进行配置。
Cacti插件详解之——Weathermap(1)
点击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  

标题名称:Cacti插件详解之——Weathermap(1)
网站地址:http://cdkjz.cn/article/jecedc.html
多年建站经验

多一份参考,总有益处

联系快上网,免费获得专属《策划方案》及报价

咨询相关问题或预约面谈,可以通过以下方式与我们联系

业务热线:400-028-6601 / 大客户专线   成都:13518219792   座机:028-86922220