What your looking at is a php program that reads in .rdd files and then populates a .png image per your instructions.  It can give you a new insight into the traffic on your network if configured correctly.  This is an old writeup from a couple of years ago but most of the data still holds true.

Difficulty: 2.5 (assuming you already have something populating .rdd files from your network.)

To improve on the overall look of the weathermap I added some icons by uploading them to the same directory as the installed icons.

irmap1 editor

For more screenshots, try a google search.

The way this whole thing works:

  1. Zenoss gathers SNMP & WMI data from all network devices, stores the data in .rdd files.
  2. Network Weather map reads this data in, and then populates a .png image
  3. We’re using a cronjob to run this script every min.

Requirements:

  • Something to gather the SNMP and WMI data from the nodes (servers/network devices).
    • This walkthrough assumes your using Zenoss
  • Webserver w/ PHP
  • Network Weathermap

Installation:

Note*: this assumes your Zenoss installation is up and running and fully configured (or close to it).

  • Install weathermap per its instructions here

Configuration:

  • To configure and layout the map, go to the directory where you installed weathermap in a browser, and add /editor.php.
  • I’m going to assume you can figure out how to add nodes and choose icons.
  • To get the links to pull data
    • The first thing you have to know is that WeatherMap won’t work with spaces in the paths, but Zenoss does.
    • So to work around this, we created a directory called rddfiles ( /var/www/html/rddfiles) and then created virtual directories (inside /rddfiles) that points to the proper location.
    • Example Command for this: $ ln -s /opt/zenoss/perf/Devices/fw.domain.com/os/interfaces/Adaptive\ Security\ Appliance\ _Ethernet0_0_\ interface /var/www/html/rddfiles/fw.inter0.0
    • Continue that for each link you want to represent on the weathermap.
  • Then you have to call that data for each link (in the Map Editor, under each link, data source)
    • Example:  /var/www/html/rddfiles/fw.inter0.0/ifHCInOctets_ifHCInOctets.rrd:ds0:- /var/www/html/rddfiles/fw.inter0.0/ifHCOutOctets_ifHCOutOctets.rrd:-:ds0
    • the “ds0:-:” and “:-:ds0” defines to the wethermap which direction the data is ‘flowing’ across the link.  swap them to change the direction.

Usage:

  • run this command to update:    php /var/www/html/weathermap –config /var/www/html/configs/<map> –output <imagename>.png — htmloutput <mapname>.html
    • No errors means it worked as well as its configured, refresh page.
    • Errors: most of the time, these are caused by either a machine being turned off, or it not reading from the source correctly, usually it will still refresh as much of the data as possible, so refresh page.
Leave a reply

Your email address will not be published. Required fields are marked *