sitescope a small health monitor and status page for a few hosts

Health monitor · status page · sealed vault

A few hosts, watched closely.

sitescope is one static Go binary that watches a small fleet from the inside and the outside. Agents answer one read-only question about their host, a hub probes what the world sees, its credentials stay sealed in an age vault until you unlock it, and you get an email when something changes and a status page for everyone else.

What sitescope does

It is named after HP SiteScope, and has the same idea at a much smaller scale: a few servers, a few zones, a mail relay or two, and one person who needs to know when any of it goes wrong.

Inside

The agent

Runs on every host (Linux, FreeBSD or OpenBSD) and answers one question, when the hub asks: what does this host look like? Disk, memory, swap, load, failed units and the units and timers you name, a pending reboot, package age, WireGuard handshakes, the postfix queue, Knot zones, and CPU, pressure, disk and network counters. It takes no commands and never calls out. The same facts are on /metrics for Prometheus.

Outside

The hub

Polls the agents and probes from the outside: DNS serials and delegation, domain expiry over RDAP, certificate lifetimes and ALPN, Certificate Transparency logs, HTTP status and latency, SMTP banners, an open-relay probe, blocklists, devices on the LAN (ping, TCP, printers over IPP), Linode billing, Cloudflare record drift and API token expiry.

Out loud

Alerts and status

An email when a check changes state, a push to your phone over ntfy for what can’t wait, a daily digest of what isn’t healthy, a dead-man’s-switch heartbeat, a public page of traffic lights, and a detailed view with 30 days of history behind a password.

Locked

The vault

The hub’s API tokens and the detail view’s password hash live in an age-encrypted vault. The hub starts locked, and the checks that need a secret wait until an operator unlocks it from a shell on the hub host, never from the web. Decrypted, they sit in locked memory outside the Go heap, kept out of swap and core dumps, and are zeroed on lock. Vault and secrets

What it promises

Read only, everywhere. sitescope never changes the infrastructure it watches. Its API tokens are read-only, its probes only ask, and the open-relay probe ends the conversation before any message is sent.

How it fits together

agent host A
agent host B
agent host C

the hub asks: GET /v1/report over WireGuard, bearer token; agents never call out

sitescope hub scheduler · probes · state machine · mailer
status page public lights, detail behind auth
control.sock unlock · lock · status
history.db bbolt, 35 days
vault.age age, scrypt

The hub runs on one host, behind a reverse proxy on 127.0.0.1:8470. Each agent listens on its host’s wg0 address, port 9105. The NixOS module sets up both, with hardened systemd units. Without NixOS, the static binaries run the hub on Linux, FreeBSD or OpenBSD and the agent on Linux, from one TOML file; see Without NixOS.

A first look

sitescope check -config config.toml            # every check once, no daemon
sitescope check -config config.toml -match dns.soa
sitescope unlock                               # on the hub host, after a restart
sitescope status