文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>Weather Map

Weather Map

时间:2005-07-14  来源:wenzk

About

Network Weathermap is a perl tool that displays in a visual way the utilization of the network links of your network. The required data are acquired from graphs created by the MRTG package and are displayed as two ways colored arrows on a map representing the logical topology of the network. The resulted image is presented in a web page using extra DHTML and JavaScript code for web-over pop-ups, based on the OverLib JavaScript library.

The program is written in Perl programming language. It is using the GD perl module for opening, manipulating and writing image files. The GD module requires the Gd Graphics Library (libgd). The Gd Graphics Library requires several libraries like freetype, libjpeg, libpng and libz.

The current version of the network weathermap does not do any SNMP data acquisition but relies on MRTG for that task since MRTG does it in a simple and effective way. MRTG stores the values of the last SNMP query as HTML comments within the HTML file that creates for each network link:

 <!-- maxin d 128563 --> <!-- maxout d 29795 -->
<!-- avin d 17219 --> <!-- avout d 18115 -->
<!-- cuin d 11369 --> <!-- cuout d 19663 -->
<!-- avmxin d 23106 --> <!-- avmxout d 18598 -->
The network weathermap retrieves the HTML files directly from the file system or remotely from a specified web server using GNU wget, parses them and uses the current in and out values (cuin d and cuout d values) to generate the map.

Weather Map
相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载