Generar mapas de red personalizados integracion con zabbix

Estoy teniendo problemas queriendo generar mapas de red, si alguien me podria dar algunas pasos, para agregar switch que estoy monitoreando por snmp desde zabbix, colocarlos en un mapa generar lineas de flujos del trafico de la red entre dispositivos

Welcome @danilojustinianobarb

SNMP is great for telling you how much traffic is on a port, but it doesn’t always tell the map which device is on the other end of that port.

  • For True Flow Lines: You need to use your Zabbix query to join the “Switch A Port 1” traffic metric to the “Switch B” node.

  • The Simple Way: Most users use the Canvas panel to draw the physical links once, then overlay the Zabbix “Throughput” metric as a data link so the line turns red when a link is saturated.

To make your flow lines dynamic, you need to bridge the gap between your Zabbix SNMP metrics and the visual properties of the line. In Grafana, this is typically done by creating a query that returns a single numeric value (like “Bits per second”) and mapping it to a Threshold.

@isaqueprofeta is the Zabbix expert, but Gemini gave me this, which might help you get started…Also, never used or tried this, but it might be an interesting alternative to Canvas.

1. The Zabbix Query

In your Grafana panel (using the Canvas or Next-generation Topology panel), set up your Zabbix data source with these parameters:

  • Query Mode: Metrics

  • Group: Your Network Group

  • Host: Switch-01

  • Application: Network interfaces (or wherever your SNMP items live)

  • Item: /Interface (.*): Bits received/ (Using a regex to catch the specific uplink port).


2. Transforming the Data

SNMP usually reports in “Total Bytes” or “Bits,” which can be huge numbers. To make the “flow” logic work:

  1. Unit: Set the panel’s unit to Data Rate > bits/sec (bps).

  2. Stat: Use the Last or Current calculation so the map shows what is happening right now.

3. Creating the “Flow” Logic (Thresholds)

This is where the magic happens. You want the line to change color or “pulse” based on utilization.

  • Green: < 50% capacity

  • Yellow: 50% - 80% capacity

  • Red: > 80% capacity

Pro Tip: In the Canvas panel, you can bind the Connection Color property to your query. If the link is a 1Gbps port, you would set your thresholds at 500,000,000 (500Mbps) and 800,000,000 (800Mbps).


4. Setting up the Map (Canvas Example)

If you are using the Canvas panel for a static map with dynamic lines:

  1. Add Element: Add an “Icon” for Switch A and Switch B.

  2. Add Connection: Draw a line between them.

  3. Data Link: Under the line settings, look for Color or Size. Click the “Field” icon and select the Zabbix query you created in Step 1.

  4. Result: The line will now physically thicken or change color as your SNMP traffic fluctuates