温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

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

发布时间:2020-06-26 21:08:17 来源:网络 阅读:2081 作者:Professor哥 栏目:移动开发
本文转自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  
向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI