# WireGuard monitor for Dashboard 2 – peers, traffic history, Telegram alerts (works with Teltonika / OpenWrt)

**URL:** <https://discourse.nodered.org/t/wireguard-monitor-for-dashboard-2-peers-traffic-history-telegram-alerts-works-with-teltonika-openwrt/102287>\
**Category:** Share Your Projects\
**Tags:** docker\
**Created:** [29 November 2026 11:28 UTC](https://discourse.nodered.org/t/wireguard-monitor-for-dashboard-2-peers-traffic-history-telegram-alerts-works-with-teltonika-openwrt/102287 "2026-11-29T11:28:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![juhasz-zoltan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/juhasz-zoltan/32/109074_2.png) [@juhasz-zoltan](https://discourse.nodered.org/u/juhasz-zoltan)\
**Post date:** [29 November 2026 11:28 UTC](https://discourse.nodered.org/t/wireguard-monitor-for-dashboard-2-peers-traffic-history-telegram-alerts-works-with-teltonika-openwrt/102287/1 "2026-11-29T11:28:53Z")

</div>

Hi all,

I'd like to share a flow I built for my own home setup: a WireGuard monitor for Node-RED Dashboard 2.

![wireguard-monitor](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/6/566d476f4ec640750dd69d563f76ef7c47686448.gif)

It polls `wg show all dump` on the router over SSH (or locally) every 30 s and shows:

- all peers with tunnel / endpoint IP, live rate, a 24 h traffic graph, totals, last handshake and time online today
- a 7-day online heatmap and an event log (connect, disconnect, endpoint change, router outage)
- live orbiting icons for the active tunnels 🙂

What I found tricky: WireGuard has no real "connected" state, only the last handshake. My iPhone kept "disconnecting" every few minutes while it was asleep. So the dashboard shows the live state right away, but the log and Telegram only record a disconnect after a configurable wait (per device, e.g. 1 min for routers, 10 min for phones).

Other bits:

- demo mode, so you can try it without a router
- no extra packages besides Dashboard 2, uses the built-in exec node
- read-only SSH key on the router (`command="wg show all dump"`), so the key can't do anything else
- English / Hungarian UI, CSV export, multiple routers

Tested on a Teltonika RUTX10 (RutOS) with Node-RED 4 + Dashboard 2 1.36.1 in Docker on a Synology NAS. OpenWrt should work the same way (same dropbear SSH). Plain Linux and local mode aren't tested yet, so feedback is very welcome.

Flow library: [WireGuard monitor dashboard (Dashboard 2) – peers, traffic, history, Telegram alerts (flow) - Node-RED](https://flows.nodered.org/flow/b3f59460e0d3b0d0cf10b07826b9f7d9)  
The GitHub repo (README, screenshots, demo video) is linked from the flow page: juhasz-zoltan/node-red-wireguard-monitor

Full disclosure: I'm a network / security integrator, not a programmer. Most of the code was written with AI assistance (Claude), and I designed and tested it on my own gear. Happy to hear what you think, and what breaks on your setup!

Zoltán

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [29 November 2026 12:18 UTC](https://discourse.nodered.org/t/wireguard-monitor-for-dashboard-2-peers-traffic-history-telegram-alerts-works-with-teltonika-openwrt/102287/2 "2026-11-29T12:18:01Z")

</div>

Hi, welcome to the forum.

That looks fantastic, thanks for sharing with the community.

---

<div class="post-metadata">

**Author:** ![juhasz-zoltan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/juhasz-zoltan/32/109074_2.png) [@juhasz-zoltan](https://discourse.nodered.org/u/juhasz-zoltan)\
**Post date:** [29 November 2026 15:12 UTC](https://discourse.nodered.org/t/wireguard-monitor-for-dashboard-2-peers-traffic-history-telegram-alerts-works-with-teltonika-openwrt/102287/3 "2026-11-29T15:12:13Z")

</div>

Thanks a lot, much appreciated! It started as a small tool for my own home setup and grew a bit along the way 🙂  
If anyone tries it on OpenWrt or plain Linux, I'd love to hear how it goes.
