Service Dashboard — monitor app
Service Dashboard is a monitor app built from LightGUI's new XFrame monitor widgets: one 1024x768 window holding a single XMonitorGrid of illuminator buttons for the services that actually run on the host. Each button polls its live check every 2 seconds and glows green when up, red when down, dim when unknown. Click a button to toggle its detail line (pid / unit state / open-closed).

What it monitors
Twelve real services on hot_dallas — no mock or seeded demo data. Every cell is a live XMonitorButton check:
| Button | Kind | What the check does |
|---|---|---|
| SSH :22 | Port | TCP connect to localhost:22 (sshd) |
| HTTP :80 | Port | TCP connect to localhost:80 (nginx) |
| HTTPS :443 | Port | TCP connect to localhost:443 (nginx) |
| NPM admin :81 | Port | TCP connect to localhost:81 (Nginx Proxy Manager) |
| ThinkMelt :2368 | Port | TCP connect to localhost:2368 (ThinkMelt Ghost) |
| Ghost :5000 | Port | TCP connect to localhost:5000 (Ghost blog) |
| lightgui.com :5009 | Port | TCP connect to localhost:5009 (this site's Ghost) |
| Traffic stats :7888 | Port | TCP connect to localhost:7888 (GoAccess) |
| dockerd | Process | Scans /proc for a process whose comm is dockerd |
| containerd | Process | Scans /proc for a process whose comm is containerd |
| docker.service | Unit | systemctl is-active docker.service == active |
| ssh.service | Unit | systemctl is-active ssh.service == active |
Widgets used
- XMonitorGrid — the panel; one shared poll_all() timer, N/12 up summary in its title bar.
- XMonitorButton — one cell per service (kinds Port / Process / Unit, via set_kind / set_target / poll()).
Every visible UI element is a widget from the LightGUI registry — no raw X11 drawing, no native GTK calls, no hand-rolled controls. The app shell (window, event loop, 500 ms select() timeout driving the 2 s poll tick) is the harness, not a UI element.
Build and run
The app exists in all three LightGUI languages, on branch monitor-apps/service-dashboard in each repo. Same window, same twelve services, same 2 s timer in each.
# C++ (lightgui)
cd examples/monitor/service-dashboard
make
DISPLAY=:119 ./service-dashboard
# Rust (lightgui_rust)
cargo run -p xframe-demo --example monitor_service_dashboard
# Python (lightgui_python)
PYTHONPATH=. python3 examples/monitor_service_dashboard/main.py
Close the window (Rust also accepts Esc / q) to quit. Python tests stay green: DISPLAY=:99 python3 -m unittest discover -s tests — 363 tests passed.
Source
- C++: lightgui —
examples/monitor/service-dashboard/main.cpp(+ Makefile, README, screenshot) - Rust: lightgui_rust —
crates/xframe-demo/examples/monitor_service_dashboard/main.rs - Python: lightgui_python —
examples/monitor_service_dashboard/main.py
Part of the Monitor Widgets set — the btop-style live widgets for LightGUI.