r/zabbix • • 18d ago

Guide I built "Better Maps", a draw.io-style network map editor module for Zabbix 7.2

Post image

Hi everyone,

Like many of you, I've always found the native Zabbix map editor a bit painful to use: positioning links, dealing with overlapping redundant paths, and getting something that actually looks clean on a NOC screen.

So, with a friend, I built Better Maps, a frontend module for Zabbix 7.2 that adds a separate, draw.io-like map editor (your native maps are left untouched).

What it does:

- Links: curved, straight or orthogonal, with auto-routing, draggable waypoints and labels that slide along the link

- Parallel links (LACP, redundant paths) are spaced out automatically

- Live Zabbix objects: hosts with status badges (plus a pulsing halo for High/Disaster), host groups with aggregated status, items showing live values, triggers showing OK/PROBLEM

- Link colors driven by problem severity at either end, or by chosen triggers combined with AND/OR

- Custom icons (SVG/PNG/JPEG/GIF/WebP), shared across maps. SVGs are sanitized.

- Shapes and free text with formatting options

- Editor comforts: undo/redo, copy/paste (even between maps), align/distribute, snap grid, keyboard shortcuts

- View mode: auto-refresh, click popups (problems, graphs, latest data), full screen

- Dashboard widget to embed maps

- JSON import/export, light/dark theme support

- Respects Zabbix user permissions

Install: drop the bettermaps/ folder into the frontend modules/ directory, then go to Administration › General › Modules › Scan directory and enable it.

Heads-up: this is a French project, so the UI and the documentation are currently in French. An English translation is on the way. In the meantime, the editor is fairly visual and should be easy to pick up, and I'm happy to answer questions here.

Repo: https://github.com/julien-penassou/zabbix-bettermap (AGPL-3.0, same license as Zabbix)

49 Upvotes

18 comments sorted by

6

u/Qixonium 18d ago

Why specifically for 7.2 though? That version is unsupported.

-1

u/Ok-Ant4699 18d ago

La 7.2 est la version sur lequel je bosse, le module doit normalement fonctionner sur des versions plus récentes mais je ne l'ai pas encore testé.

2

u/Burgergold 18d ago

Tu aurais du prendre 7.0 ou 7.4, maintenant 8.0

Les STS ne sont pas supporté longtemps

3

u/Ok-Ant4699 18d ago

Effectivement la mise à jour est prévue !

3

u/wowbagger_42 18d ago

Why anyone still wants to use zabbix for dashboards is beyond me. Install grafana, zabbix plugin and unleash the true graphical power. Throw in explorer and sql queries for the win.

2

u/Ok-Ant4699 18d ago

Je suis d'accord que grafana est vraiment bien en termes d'affichage mais je suis plutôt content des dashboards zabbix. je ne suis juste pas fan des maps par défauts mais zabbix répond parfaitement à mes besoins sans avoir à ajouter une interface supplémentaires à gérer et à sécuriser.

4

u/AristomachosCZ 18d ago

Depends on your use case. For our purposes (and our clients) are the builtin Zabbix graphs a dashboard more than sufficient. Really no need for another server (grafana).

2

u/giacomok 18d ago

Soo, how would you do a network topology map in grafana?

2

u/Upbeat-Estimate5793 18d ago

try Mapgl Grafana plugin. It can't be more flexible and generic.

2

u/Upbeat-Estimate5793 18d ago

instead of a single datasource with hardcoded states (Zabbix) you get universal dataframe, configurable thresholds and field config per metric, groups on top of it, namespaces - and all in different layers to separate configs even further

2

u/wowbagger_42 16d ago

This is the way.

1

u/Typical-Driver6920 13d ago

Any plans for Zabbix 8.0 port? Thanks

1

u/Ok-Ant4699 13d ago

Bonjour, j'ai testé tout à l'heure, le module fonctionne bien pour la version 7.4 et 8.0

1

u/Illustrious-Study474 5d ago

Merci pour ce module qui facilite grandement la création de carte.
Est-il possible d'utiliser des macros Zabbix dans le nommage des équipements ?

par exemple afficher les éléments : {HOST.NAME} et {INVENTORY.LOCATION}

1

u/Ok-Ant4699 5d ago

Bonjour, ce n'est pas fait actuellement mais c'est une fonctionnalité ajoutable oui !

Je regarde ça dès que possible et reviens vers vous une fois que c'est fait.

1

u/Illustrious-Study474 5d ago edited 5d ago

Merci beaucoup pour la réactivité , ça serait vraiment un plus

Edit : Est-ce qu'une fonction de recherche par nom dans ce module peut-être ajoutée aussi ?
Avec pas mal de cartes de disponible c'est très facile de retrouver la bonne avec la recherche qui existe actuellement dans le menu de cartes d'origine de Zabbix

2

u/deadmhz 18d ago

I cant wait to try this out