Chinaunix首页 | 论坛 | 博客
  • 博客访问: 6929445
  • 博文数量: 637
  • 博客积分: 10265
  • 博客等级: 上将
  • 技术积分: 6165
  • 用 户 组: 普通用户
  • 注册时间: 2004-12-12 22:00
文章分类

全部博文(637)

文章存档

2011年(1)

2010年(1)

2009年(3)

2008年(12)

2007年(44)

2006年(156)

2005年(419)

2004年(1)

分类: LINUX

2005-07-14 21:10:42

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:

   



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.



阅读(1782) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~