Monitoring & Health#

Fleet-Wide Watchdog (meshctl watch)#

meshctl watch evaluates one or more nodes over local paths or SSH without exposing any remote HTTP/TCP management port:

meshctl watch --json \
  root@node-fra.example.org:/var/lib/fleetmesh \
  root@node-sgp.example.org:/var/lib/fleetmesh

Exit codes integrate directly with systemd timers, cron, and alerting:

Exit code

Meaning

0

All nodes healthy ("wrong": [])

1

One or more nodes reported an operational fault

2

One or more nodes could not be reached

Distinguishing wrong from note in JSON output:

  • wrong (actionable fault): Broken receipt chains, compartment faults, exhausted budgets, or a protocol digest mismatch between nodes. Investigate immediately.

  • note (informational): Expected mesh telemetry such as peer throttling or directional strain (for example, when most traffic arrives from a single relay). Notes do not cause a non-zero exit code.

Check that every node in the fleet reports the same digest (from schema/DIGEST). See Fleet Monitoring and Supervision for systemd timer units (meshwatch.service / meshwatch.timer) and optional CI/spec correlation variables (FLEETMESH_CI, FLEETMESH_SITE).

Deep Local Diagnostics (meshnode health and Peers)#

For a full error-plane report directly on a node host:

sudo -u meshnode /opt/fleetmesh/.venv/bin/meshnode health /var/lib/fleetmesh

A healthy node shows all configured relays up, handler failures 0, tick failures 0, and concludes with no trouble reported.

Useful follow-up inspection commands:

Command

Shows

meshnode status <dir>

Last tick summary and active trouble

meshnode peers <dir>

Peer tiers, grants, last window, standing

meshnode grant <dir> <peer>

Bilateral grants and pending boundary changes

meshnode capacity <dir>

Local ceiling, pressure, and active shedding

meshnode strain <dir>

Directional strain and reserves

meshnode subsystems <dir>

Every compartment and its refusal counts

meshnode refusals <dir>

Recent refusals across compartments

meshnode subscribe <dir>

Live stream of internal bus events

If you also run a dedicated strfry relay behind Caddy, verify both services stay active (systemctl is-active strfry caddy).