溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

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

發(fā)布時間:2020-06-26 21:08:17 來源:網(wǎng)絡(luò) 閱讀:2126 作者:Professor哥 欄目:移動開發(fā)
本文轉(zhuǎn)自http://www.cactifans.org/index.php/2...A3-weathermap/
Weathermap是cacti中大家最用的一個插件之一,用它可以畫出漂亮的網(wǎng)絡(luò)拓撲
圖!同時Weathermap也是一個獨立工具,可以獨立部署,不需要cacti的支持,也可以部
署.下面首先來看一看用Weathermap畫出來的拓撲圖.
Cacti插件詳解之——Weathermap(1)
Cacti插件詳解之——Weathermap(1)
Cacti插件詳解之——Weathermap(1)
Cacti插件詳解之——Weathermap(1)
這些漂亮的網(wǎng)絡(luò)拓撲都是用weathermap畫出來的!
這么長時間了沒有發(fā)出來,今天就寫以下weathermap的用法,以下都是我自己的理解,如有錯誤之處請諒解!Cacti插件詳解之——Weathermap(1)
weathermap是用來做網(wǎng)絡(luò)拓撲圖的,其中可以調(diào)用mrtg和cacti的流量圖,可以生成靜態(tài)的html頁面。具體的例子大家可以中國科大的這個http://linux.ustc.edu.cn/
weathermap的官方網(wǎng)站為 http://www.network-weathermap.com/ weathermap有二種用法。第一種就是作為cacti的插件使用,第二種就是獨立出來,可以獨立安裝一個weathermapm,當(dāng)然要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已經(jīng)安裝成功。

2.配置使用weathermap

安裝好weathermap后,看到點Console在左邊的列表里會看到weathermap的菜單,我們點擊,會看到設(shè)置,因為我們還沒有定義一個weathermap配置文件,所以我們點右上角的Add按鈕,添加一個weathermap配置文件
Cacti插件詳解之——Weathermap(1)
點擊Add之后,我們看到有二個文件,其實這個時候調(diào)用的就是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問一下細節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI