Ad Widget

Collapse

Network Topology Mapper

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TiggyWiggler
    Junior Member
    • Feb 2021
    • 16

    #1

    Network Topology Mapper

    The idea of having an automatic network topology mapper has come up a few times. I set out to write one and people said that if I ever got to a good place with it that I should share it with the community. Please find below a link to the git repository. It is written in C and can be run from the command line (or you can trigger it from Zabbix by issuing a command through a script). It uses the data from Zabbix to build the map, deleting the previous map of the same name and completely rebuilding each time. It has a couple of dependencies most notably L2DM-LLDP (https://share.zabbix.com/network_dev...odule-for-lldp).

    Please provide feedback on the code. I am not an expert in C and I am using some of the old functions (strcpy instead of strncpy for example) but I will refractor the code once I am sure that everything is working correctly.

    I am still working on it and I know there are a few issues in the code, but it can reliably produce network topology maps at the moment so I feel happy to release it to the community. I would recommend that for now you keep it in dev / test environments and do not take this to production environments until I have had a bit longer to take in feedback and make changes.

    I have built a render engine as well that outputs the network map as a .bmp file, but I have stripped that out of this git to keep it lightweight. I will share that .bmp render as a cloned project later once I have completed my modifications to make the links between nodes connect to the actual ports on the given icon / drawing being used for each node on the map.

    Have fun and let me know what I can do to improve it for you (or fork it!).

    git: https://github.com/TiggyWiggler/zabbix-map
  • TiggyWiggler
    Junior Member
    • Feb 2021
    • 16

    #2
    I have now written a detailed explanation of each parameter and included screenshots from worked examples. https://github.com/TiggyWiggler/zabb...ine-Parameters

    Comment

    • Colttt
      Senior Member
      Zabbix Certified Specialist
      • Mar 2009
      • 878

      #3
      how does a created map looks like?
      Debian-User

      Sorry for my bad english

      Comment


      • TiggyWiggler
        TiggyWiggler commented
        Editing a comment
        They look the same as native maps because the system simply uses the in-built map system and just populates the assets in the correct positions and with the correct links. It looks like a collection of trees with a root node at the top and branch / leaf nodes below. If you look at the worked examples (https://github.com/TiggyWiggler/zabb...ine-Parameters) you will see many pictures there.
    Working...