I got tired of discovering pending kernel patches, stale Docker images, and expiring TLS certificates only when I happened to SSH into the right virtual machine. Managing a bare-metal Proxmox hypervisor, eight active Linux guests, dozens of containers, and 129 live web domains usually pushes teams straight into expensive per-endpoint RMM subscriptions. Instead, I built a single zero-dependency Python watchdog that inspects every host natively, routes deduplicated tickets straight into my Odoo operations board, and keeps over a hundred live monitors synchronized inside Uptime Kuma v2 for zero dollars per month.
Commercial remote monitoring agents come with two hidden taxes: monthly per-seat invoices and privileged root daemons running opaque binary code inside every guest VM. When I already control the bare-metal Proxmox hypervisor underneath all eight guests, installing a third-party SaaS agent on every machine feels backwards. The hypervisor already speaks directly to each virtual machine over a local virtio serial channel via the QEMU Guest Agent.
That realization changed my entire fleet operations design. Rather than scattering fragile cron jobs and SSH keys across nine separate hosts, I wrote one central auditor that orchestrates everything from a single control node, reconciles operational drift into structured ERP tasks, and closes tickets automatically the moment a host drops back to zero pending CVEs.
The First Live Audit Surprise: On its very first sweep across all nine hosts, the watchdog surfaced 204 pending packages and 63 security CVEs sitting quietly on a mail gateway VM, an upstream Ubuntu archive mirror timing out over IPv6 on seven guests, and a hidden UEFI GRUB cloud hook blocking kernel updates on bare-metal RAID1. One morning run paid for the entire script ten times over.
Why Paid RMM Suites Break Down for Lean Engineering Fleets
Traditional RMM and observability tools assume you have a dedicated NOC analyst triaging noisy alert emails all day. In practice, small engineering teams hit three friction walls almost immediately:
- Alert Fatigue Without State Tracking: Sending a daily cron email listing 18 upgradable packages trains you to archive the message unread. Real operations need stateful tickets that update in place when counts change and auto-close when patched.
- Shadow Domains Slip Out of Uptime Monitors: Every time you launch a client portal, documentation subdomain, or staging app behind Caddy or Nginx, someone forgets to add it to the status page. Months later, a TLS certificate fails silently.
- Agent Drift Across Mixed Distros: Running Debian hypervisors, Debian mail gateways, and Ubuntu application guests alongside containerized ERP stacks means proprietary agents frequently break across minor OS upgrades.
If a monitoring script only screams when something breaks, you still have to track the work by hand. A real watchdog opens one clean ticket per host, refreshes it every morning, and closes it the second verification passes.
Architecture: Three Layers Working as One Closed Loop
I built sovereign_fleet_watchdog.py strictly with Python's standard library so it carries zero virtual environment drift and runs in roughly 76 seconds every morning at 06:30 MST. You can inspect live aggregate telemetry from this pipeline on my engineering portfolio or benchmark your own stack perimeter using our security posture scanner.
Hypervisor + QEMU Guest Exec
Audits bare-metal RAID1 health, Proxmox version, and vzdump freshness, then runs read-only guest probes via qm guest exec --timeout 120 across all eight VMs without distributing extra SSH keys.
Odoo Auto-Ticketing
Maps every host and website audit to a deterministic key inside an Odoo project board. Existing issues update in place; resolved hosts automatically move to the Verified stage.
129-Site TLS & Kuma v2 Sync
Parses reverse proxy routes automatically, tests every HTTPS endpoint and TLS expiry window concurrently, and reconciles active monitors directly into Uptime Kuma v2 groups.
Step 1: Agentless Fleet Telemetry Over QEMU Guest Exec
Because every virtual machine runs qemu-guest-agent (already required for crash-consistent filesystem freezes during weekly backups), the hypervisor can execute bounded, read-only inspection commands directly over the virtualized serial bus. Each host returns a compact JSON payload covering pending APT upgrades, security-origin CVE counts, kernel reboot flags (/var/run/reboot-required), disk pressure, UFW/fail2ban status, and live container image digests compared against upstream registries.
# Bounded hypervisor-to-guest probe (zero agent installs, zero extra SSH keys)
qm guest exec "${VMID}" --timeout 120 -- /bin/sh -c '
apt_total=$(apt list --upgradable 2>/dev/null | grep -c "/" || true)
apt_sec=$(apt list --upgradable 2>/dev/null | grep -iEc "security" || true)
reboot=$( [ -f /var/run/reboot-required ] && echo true || echo false )
printf "{\"apt_total\":%d,\"apt_sec\":%d,\"reboot\":%s}\n" "$apt_total" "$apt_sec" "$reboot"
'
When I first enabled --refresh-apt across all seven Ubuntu guests, several probes hit timeouts against default upstream Ubuntu archive mirrors over IPv6. Switching every Ubuntu guest to a fast HTTPS academic mirror (142 ms round-trip) paired with Acquire::ForceIPv4 "true"; in /etc/apt/apt.conf.d/99force-ipv4 cut fleet-wide refresh runtime to seconds and stopped transient mirror stalls completely.
Step 2: Real-World Fixes Uncovered While Reaching Zero CVEs
Running the watchdog and actually driving every host down to zero pending packages and zero security CVEs exposed three tricky infrastructure bugs that quiet monitoring would have hidden for months:
| Fleet Layer | Hidden Blocker Found | Root Cause & Clean Fix | Verified State |
|---|---|---|---|
| Bare-Metal Hypervisor | Kernel & PVE upgrade aborted mid-dpkg | A legacy cloud-init GRUB hook conflicted with bare-metal UEFI RAID1 /dev/md partitions. Archiving the stale hook and rerunning UEFI grub-install + update-grub finished the upgrade cleanly. |
PVE 8.4.21, 0 CVEs |
| Mail Security Gateway | 204 pending updates & 63 security CVEs | Debian security repositories needed clean full-upgrade orchestration and kernel alignment inside a controlled maintenance window. | PMG 9.1.6, 0 CVEs |
| Error Tracking Service | GlitchTip v6 worker container crash-looping | Upstream GlitchTip v6 consolidated background tasks into a single web process, rendering the legacy separate worker container definition obsolete. | Healthy single-process v6 |
| Uptime Status Plane | Uptime Kuma stuck on v1.23 with manual monitors | Backed up the SQLite store, upgraded cleanly to Uptime Kuma v2.5.12, and deployed automated Socket.IO monitor synchronization. | 102 live monitors in 6 groups |
Step 3: Auto-Discovering 129 Domains & Syncing Uptime Kuma v2
Manually typing domains into a status dashboard is guaranteed to drift. Instead, my watchdog parses live Caddyfile routes, Nginx virtual hosts, isolated vault tenants, and managed client sites automatically every morning. Using Python's ThreadPoolExecutor, it checks HTTP response codes and reads the peer X.509 certificate's notAfter timestamp for all 129 domains in parallel, flagging any certificate expiring within 14 days.
Immediately afterward, sync_uptime_kuma.py connects to my self-hosted Uptime Kuma v2.5.12 instance and reconciles every healthy public site into six clean service groups with automated TLS expiry alerts. When a new tenant or subdomain goes live behind Caddy, it shows up in the status monitor the next morning with zero manual clicks.
Step 4: Stateful Odoo Ticketing That Closes Its Own Work
Rather than dumping raw JSON logs into an inbox nobody reads, the watchdog talks to my Odoo instance over XML-RPC and maintains a dedicated Fleet Ops & Patch Command project board. Each host carries a stable tracking tag in its task description. If pending CVEs jump from 0 to 12, the script opens or reopens that host's card with an exact package table and priority flag. Once I patch the machine and run a verification sweep, the watchdog sees zero pending updates and automatically moves the task into the Patched & Verified column.
If your team is burning thousands of dollars per year on noisy RMM seats while still discovering expired certificates from angry clients, consolidating fleet telemetry into one declarative script changes the math overnight. You can also explore how I pair this watchdog with my zero-knowledge backup pipeline or reach out to design a clean operational plane for your own servers.