Skip to content

About

Your whole infrastructure, live, in one cockpit: auto-discovered topology, VMware, switches, alerts, logs and AI, even without access to your network gear. Prometheus · Grafana · Loki · Zabbix. EN/FR.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

7 stars

Watchers

0 watching

Forks

Repository files navigation

NetCockpit logo

NetCockpit

Your whole infrastructure, live, in one cockpit.

Auto-discovered topology, VMware, switches port by port, alerts, logs and optional AI diagnosis,
for IT teams whose switches and firewalls are managed by someone else.

CI Release License: MIT Stars Docker Compose UI: English | Français

English · Français · Live demo · 🎬 Video (4 min, in French) · Run the demo · Step-by-step guide · How it works · Docs

NetCockpit on AlternativeTo

NetCockpit demo: status headline, device sheet with AI analysis, topology, VMware, switches, day theme

Everything above is the built-in demo: names and IP addresses are fictitious.


Why NetCockpit?

Many companies outsource their network. The provider manages the switches, the firewall and the routers, and the internal IT team has no admin access to them. Classic tools then show a flat list of IP addresses, and the network map stays a Visio file nobody updates.

NetCockpit combines every source you do have access to: network scan, Active Directory DNS, NetBIOS, traceroute, vCenter or ESXi, server agents, and SNMP as soon as your provider opens it. It builds a real, live, hierarchical map of your infrastructure, with the problems drawn on it, and tells you in one sentence whether everything is fine.

It does not replace Prometheus, Grafana or Zabbix: it ships them, configures them, and adds the piece they lack, a cockpit that understands your sites, your VMware and your network without anyone drawing anything.

✨ Highlights

  • 🗺️ Real topology, automatically. Internet → ISP → firewall → sites → networks → switches → servers and ESXi → VMs. No manual drawing, updated every 15 seconds.
  • 🔌 Which port is everything plugged into? CDP/LLDP is read through your ESXi hosts and Linux servers, without touching the switches. Add read-only SNMP and you get the full port-by-port map.
  • 🏷️ Real names, not IPs. AD DNS, NetBIOS (Windows names and MACs even across routers), vCenter and agent names.
  • 🚦 No false alarms. A laptop that went home is absent (grey), not down. Red is reserved for servers, VMs, hypervisors, firewalls, switches and domain controllers that stopped answering.
  • 🖥️ VMware and Proxmox at a glance. Every host, its VMs (CPU, RAM, IPs, OS), datastores and alarms. Works with vCenter, a standalone ESXi, or Proxmox VE (VMs and LXC containers, experimental), always read-only.
  • 🔔 One alert pipeline. Prometheus, Loki and Zabbix all go through Alertmanager to Telegram, Discord or email, grouped and de-duplicated: if the firewall dies, you get one message, not 80.
  • 🤖 AI diagnosis, optional. "Explain this problem" on any device and a situation briefing, with a cloud LLM API or a local model (Ollama: nothing leaves your network).
  • ✈️ A real cockpit, not another admin template. One sentence tells you how things are, the route to the Internet is drawn like the magenta line of a flight plan, and the UI uses B612, the typeface Airbus designed for cockpit screens. Night and day themes, English and French.
  • 📦 One command, no YAML to write. ./setup.sh detects your network, asks a few questions with sensible defaults, backs up your settings and starts everything. The cockpit arrives as a ready-made image (amd64 and arm64): nothing to compile. Later, ./setup.sh --update moves to the latest published version without touching your settings or history.

📸 Screenshots

Overview Same screen, day theme, in French
Overview Overview, day theme, French
Live topology Problems only (wall screen)
Topology Problems
VMware Switches, port by port
VMware Switches
Inventory (CSV export) Device sheet + AI analysis
Inventory Device
Setup checklist (ticks itself) Alerts from every source
Setup Alerts

The interface follows your browser language and your system theme; switch both from the left rail.

⚡ Try it in one minute

No install: open the live demo in your browser, or watch the 4-minute video (demo and install, in French).

The demo simulates a complete two-site network: firewall, 2 ESXi hosts, 11 VMs, switches, Wi-Fi access points, printers, IP phones, PCs and a few failures. Nothing is scanned, no credentials needed.

git clone https://github.com/B2ZO0/netcockpit.git && cd netcockpit
docker compose -f docker-compose.demo.yml up --build

Open http://localhost:8088. Without Docker: pip install pyyaml requests && python demo/demo.py.

🧩 Features

Area What you get
Discovery nmap ping/ARP sweep and port fingerprinting, NetBIOS names, reverse DNS against your AD, domain controller auto-detection, traceroute to the Internet, new-device detection
Topology Hierarchical tree with grouping, per-site filter, "problems only" mode, PNG export, live status every 15 s, mini map on the overview
Switches CDP/LLDP from ESXi (vCenter API) and Linux servers (lldpd); full map from SNMP: LLDP/CDP neighbours, MAC tables, ARP, port status, speed, traffic
VMware Hosts, VMs, datastores, alarms, quick stats (vCenter or standalone ESXi), plus Zabbix native VMware monitoring
Servers Grafana Alloy agent (Linux & Windows): CPU, RAM, disks, services, systemd, Windows Event Log, journald; one-line install served by the cockpit
Availability Blackbox exporter: ICMP, TCP, HTTP(S) with certificate expiry, DNS
Logs Loki: server logs + syslog receiver (UDP/TCP 514) for firewalls and switches
Alerting ~40 ready-made rules (down, disk full or filling up, CPU/RAM, datastore, vCenter alarms, SSH brute force, disk I/O errors, OOM, saturated switch port, certificate, new device…), Alertmanager → Telegram / Discord / email
Zabbix Auto-configured: VMware template, SNMP discovery, and every important device found by the cockpit is declared in Zabbix, grouped by site and type
Grafana 7 provisioned dashboards: overview (with node graph), server, network & inventory, VMware, switches (SNMP), Zabbix, logs
AI (optional) Anthropic API or any OpenAI-compatible endpoint (OpenAI, Mistral, Ollama, LM Studio…), answers in the interface language
Setup screen A checklist that ticks itself (buildings, names, VMware, agents, notifications, Zabbix, SNMP), with what to do and commands ready to copy
Interface English and French, night and day themes, keyboard search (/), works offline (no CDN, fonts bundled)

🧭 How the topology is built without network access

flowchart LR
  subgraph Sources
    S1[nmap scan<br/>ARP · ports]
    S2[AD DNS · NetBIOS]
    S3[traceroute]
    S4[vCenter / ESXi API<br/>CDP · LLDP of host NICs]
    S5[Alloy agents + lldpd]
    S6[SNMP read-only<br/>LLDP · CDP · MAC · ARP]
    S7[Prometheus probes<br/>Alertmanager · Zabbix]
  end
  S1 & S2 & S3 & S4 & S5 & S6 --> M[(Unified model<br/>merge by IP · MAC · name)]
  S7 --> M
  M --> T[Hierarchical tree<br/>Internet → firewall → sites → switches → hosts → VMs]
  M --> V[Views: overview · VMware · switches · inventory · alerts]
  M --> P[Prometheus targets<br/>+ Zabbix hosts]
Loading
Source Brings Needs
Scan Every live device, open ports, vendor (MAC, local subnet) Nothing
DNS / NetBIOS Machine names, Windows MACs even on remote sites Your DNS servers in the config
Traceroute Gateway → provider router → ISP → Internet Nothing
vCenter / ESXi Hosts, VMs, datastores, alarms, switch and port of each host NIC A read-only account
Agents Resources, logs, switch and port of physical Linux servers One command per server
SNMP Complete port-by-port topology, traffic, errors Read-only community from your provider

🚀 Installation

Requirements: a Linux VM (Debian 12 / Ubuntu 24.04), 2 vCPU and 4 GB RAM minimum (4 vCPU and 8 GB for several hundred devices), 60 GB disk, Docker with the compose plugin.

curl -fsSL https://get.docker.com | sh            # if Docker is not installed
git clone https://github.com/B2ZO0/netcockpit.git && cd netcockpit
./setup.sh                                         # detects your network, asks a few questions, starts everything

The setup assistant detects the local network, gateway and DNS servers, then asks for your buildings (or sites), your other networks, VMware, SNMP and Telegram. Every question has a default: press Enter. Re-run it any time with ./setup.sh --configure.

👉 First time? Follow the step-by-step guide: install, buildings, VMware read-only account, Zabbix, agents, Telegram, switches (including Ubiquiti UniFi), troubleshooting. Different situation (multi-site, no AD, no VMware, provider-managed network, homelab)? See the scenarios. Once running, the cockpit's Setup screen tracks what is left to do, with commands ready to copy.

Service URL
Cockpit http://<host>:8088 (password shown by ./setup.sh, COCKPIT_PASSWORD)
Grafana http://<host>:3000 (admin / GRAFANA_ADMIN_PASSWORD)
Zabbix http://<host>:8081 (Admin / ZABBIX_ADMIN_PASSWORD)
Prometheus · Loki · Alertmanager on the host only: 127.0.0.1:9091 · 127.0.0.1:3101 · 127.0.0.1:9093 (from your workstation: ssh -L 9091:127.0.0.1:9091 <host>, or Grafana → Explore). Agents push to :9090 and :3100, which accept nothing else; see SECURITY.md

Then install the agents (the cockpit serves the scripts):

# Windows (admin PowerShell, on the server)
Set-ExecutionPolicy -Scope Process Bypass -Force
iwr http://<host>:8088/agents/windows/install.ps1 -OutFile $env:TEMP\install.ps1 -UseBasicParsing
& $env:TEMP\install.ps1 -Server <host>
# Linux
curl -fsSL http://<host>:8088/agents/linux/install.sh | sudo bash -s <host>

➡️ Full guides: Installation · Configuration · Agents · Topology & data sources · Alerts · Troubleshooting

Upgrading never touches your settings

./setup.sh --update       # moves to the latest published version, never to work in progress, never backwards

Testers can follow the main branch with ./setup.sh --update --edge (not on a production host).

Your .env and config/cockpit.yml are never versioned and never overwritten (the repository only ships config/cockpit.example.yml), history lives in Docker volumes, and setup.sh copies your settings to backups/<date>/ before every run. Details in Upgrading.

📨 What to ask your network provider

  1. Read-only SNMP v2c on switches, firewall and routers, from the monitoring host's IP: full port-by-port map, traffic and errors.
  2. Syslog forwarding to the monitoring host, port 514.
  3. LLDP or CDP enabled on server-facing ports.
  4. Their agreement for the internal scan (ping and a few ports every 30 minutes), so it does not trigger their IDS.

❓ FAQ

Do I need admin access to my switches or firewall? No. Everything works without it; read-only SNMP only adds the port-by-port detail.

Does anything leave my network? No, unless you enable the AI feature with a cloud provider. With a local model (Ollama), nothing leaves.

Is it heavy? Less than you'd think. Measured in production on a company network (~230 devices across 2 buildings, 20 VMs, 8 servers with the agent), the whole stack including Zabbix uses about 1.2 GB of RAM (Prometheus and Grafana ~250 MB each, Loki ~150 MB, Zabbix ~250 MB in total, the cockpit ~60 MB) and under 5 % CPU at rest. Plan 4 GB to be comfortable, 8 GB for a large network or long retention.

Can I run it next to other containers? Yes. It uses ports 8088, 3000, 9090, 3100 and 514 (plus 9091, 3101 and 9093 on the host only), and 8081 and 10051 when Zabbix is enabled.

Only VMware? No: Proxmox VE is supported too (nodes, VMs, LXC containers, storages, with a read-only API token), plus any physical server with an agent. Hyper-V is on the roadmap.

Proxmox VE — experimental. Checked against a simulated Proxmox API in automated tests; not yet tested on a real Proxmox server — feedback welcome. Open an issue with what works or not.

🏗️ Architecture

flowchart TB
  subgraph Host["Monitoring VM (docker compose)"]
    NM["Cockpit<br/>Python · Cytoscape.js<br/>:8088"]
    GW["Agent gateway<br/>:9090 · :3100"]
    PR[Prometheus]
    AM[Alertmanager :9093]
    LK[Loki]
    BB[Blackbox exporter]
    SE[SNMP exporter]
    SY["Alloy syslog :514"]
    GF[Grafana :3000]
    ZB["Zabbix server + web :8081"]
  end
  AG["Alloy agents<br/>Linux / Windows"] -- metrics, logs --> GW
  GW --> PR & LK
  FW[Firewalls / switches] -- syslog --> SY --> LK
  NM -- writes targets --> PR
  PR --> BB & SE
  PR -- rules --> AM
  LK -- log rules --> AM
  NM -- reads --> PR & AM & LK
  NM <-- API --> ZB
  NM -- vSphere API --> VC[(vCenter / ESXi)]
  AM --> N["Telegram · Discord · Email"]
  GF --> PR & LK & ZB & NM
Loading

🔐 Security notes

  • Agent pushes (9090, 3100) and syslog (514) have no authentication: keep them on your internal network, never expose these ports to the Internet. 9090 and 3100 accept nothing but agent pushes: metrics and logs can only be read on the monitoring host or through Grafana.
  • Secrets live in .env (mode 600), backups in backups/ (mode 700). vCenter/ESXi only needs a read-only role.
  • The AI feature is off by default. When enabled with a cloud provider, the data of the analysed device (name, IP, alerts, log excerpts) is sent to that provider. Use a local model if that is not acceptable.

See SECURITY.md to report a vulnerability.

🗺️ Roadmap

  • English and French UI, night and day themes
  • Safe upgrades: settings never versioned, automatic backups
  • Password login for the cockpit
  • Proxmox VE (nodes, VMs, LXC, storages, experimental) and one-command update
  • Connectors you switch on one by one (firewalls, NAS, more switches)
  • Setup from the browser, with a guide
  • Hyper-V, SNMPv3, several vCenter / ESXi endpoints

The full plan, version by version, is in ROADMAP.md.

Ideas, translations and pull requests are welcome: see CONTRIBUTING.md.

🙏 Credits

NetCockpit is glue and UI on top of excellent open-source projects:

📄 License

MIT. Third-party components keep their own licences (see cockpit/static/lib/LICENSES.txt).


Made by Enzo Marechal (@B2ZO0), junior system and network administrator.

⭐ If NetCockpit saves you time, a star helps other admins find it.

Star History Chart

About

Your whole infrastructure, live, in one cockpit: auto-discovered topology, VMware, switches, alerts, logs and AI, even without access to your network gear. Prometheus · Grafana · Loki · Zabbix. EN/FR.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

7 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages