Skip to content

akostyuk/python-net-weathermap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sumarry

python-net-weathermap is a python tool that create visual map of the network links utilization, using MRTG data aggregation. If you are the Internet Provider or network operator and you are using MRTG tool to logging your network, just try to use this package for creating a network weather map of your network.

Dependencies

python-net-weathermap requires pycairo Python bindings for the cairo library and py-rrdtool Python Interface to RRDTool

Usage

    from net_weathermap import Node, Link, Map
    
    # First, we need to define our nodes
    a = Node(x=40,y=240,label='Device A')
    b = Node(x=600,y=240,label='Device B')
    
    # Second, we define the link with a and b nodes and bandwidth 1000 Mb/s
    # myrrdfile.rrd is a MRTG data aggregation of this link
    
    link = Link(a,b,1000,rrdfile='myrrdfile.rrd')
    
    # Third, we place our link to the map and draw all elements
    map = Map([link])
    map.draw_arrows()
    map.draw_labels()
    
    # Saving our map to the file
    
    map.save('mymap.png')

About

Python tool visualizes network utilization using MRTG data aggregation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages