revs412@portfolio:~/notes/resilient-zabbix-monitoring-platform$cat resilient-zabbix-monitoring-platform.md

Why This Note Exists

An environment with cloud servers, game services, Docker workloads, and a home router needs one operational view. Without it, a service can be down for a long time before anyone notices, and router, WAN, and monitoring-control-plane failures are easy to confuse.

The goal was not simply to display graphs. It was to build monitoring that can be operated: private access, alerts through more than one path, buffered home-site data, and proof that the monitoring configuration can be restored.

Architecture Direction

The Zabbix control plane runs on a cloud VPS with PostgreSQL and TimescaleDB. The Zabbix UI, server, and agents are reachable only through WireGuard; the VPN UDP endpoint is the only intentionally public monitoring-related service.

The Raspberry Pi OpenWrt router runs an active Zabbix proxy. It collects home-network data and can temporarily retain unsent measurements when the cloud link is interrupted. Losing the proxy is itself a useful signal for a site, router, or WAN issue.

Linux hosts and game services
          |
          | private WireGuard transport
          v
Zabbix control plane on cloud VPS
          |
          +--> Discord and ntfy alerts
          |
          +--> encrypted off-site backups

OpenWrt router + active proxy
          |
          +--> buffered home-site telemetry

What Is Monitored

The standard Linux profile covers availability, CPU, memory, swap, filesystems, inodes, I/O, network, and load.

Service-specific checks add:

  • required Docker component state
  • Minecraft service availability
  • Valheim service, server process, game UDP listener, and Discord relay
  • router PPPoE/WAN state, traffic, errors, latency, and packet loss
  • CAKE/SQM state, temperature, load, and OpenWrt overlay storage
  • control-plane backup freshness

This means monitoring is not limited to a ping. It connects host, service, and network signals to plausible operational causes.

Alerting and Independence

High and Disaster events route to Discord and ntfy in parallel. An external heartbeat service verifies that the control plane can still report its own health, providing an independent path if the Zabbix VPS, database, or alert processing is unavailable.

No alert delivery can be literally unstoppable: a power loss, lack of network, or denied notification permission can always prevent delivery. The objective is to reduce shared failure points rather than make an impossible promise.

Backup and Restore Validation

Daily encrypted archives contain a consistent PostgreSQL dump, operational configuration, and checksums. They are retained locally and replicated to off-site object storage.

A real restore was performed into a disposable, isolated PostgreSQL database. The validation confirmed that hosts, items, triggers, and actions were present before the temporary database was removed. Production was not altered during the test.

That distinction matters: a successful backup job is not, by itself, evidence of recoverability.

Limits and Decisions

This is an operationally resilient configuration, not a full Zabbix HA cluster. True server failover would require a separate control plane and a highly available shared database, which is intentionally deferred until dedicated central infrastructure exists.

Future devices are not automatically trusted merely because they reach the VPN. Each receives a unique WireGuard peer, Zabbix identity, TLS credential, appropriate monitoring role, and initial verification before onboarding is complete.

Practical Result

The platform provides a private, central view of current infrastructure with independent alert paths and a tested restore workflow. It also establishes a repeatable model for adding future VPSs, SBCs, routers, virtual machines, and services without turning monitoring or security into ad-hoc manual work.