The fleet view¶
One grid showing every agent on every host, for a viewer holding the admin role.
The fleet mini-app¶
The fleet view is a cockpit mini-app (fleet), auto-activated for a viewer holding the admin
role. It paints from the SSE stream the cockpit already carries (/events), so it adds no
collection of its own. The gateway refreshes per-agent metadata only while somebody is watching
it.
Cross-host reads¶
Agents dial in to the web-view gateway, which op-relays top --json into each one over the
connection the agent already opened. That needs no SSH, no passwordless sudo on the targets and
no operator laptop switched on, and it crosses NAT that an inbound SSH does not. One gateway
therefore shows agents from every host in a single grid, grouped by host.
Where a host's health comes from¶
Two carriers report it, and the gateway folds both into one reading per host:
| Carrier | Runs as | Reports |
|---|---|---|
The host itself — agentctl-host-dial.service, one per host, no agents required |
root | load, CPU count, disks, unit states and host crons, agentd reachability, the local PII filter, the /opt/agentctl git remote the map groups host families on, and the three gateway ports |
| Each agent on the host — its own dial-in | that agent's uid | everything an unprivileged uid can read |
When the two carriers disagree, a confirmed reading wins over a blank one, whichever carrier supplied it. Between two confirmed readings the freshest wins, so an "up" and a "down" are settled by time rather than by carrier. The host's own carrier answers on connect, and whenever the gateway asks while somebody is watching the fleet view, throttled to one collection every 2 s.
Two things follow from the host carrier being root:
- A host with zero agents still reports full health. A gateway host, or one adopted minutes ago, appears with real load, disks and unit states.
- Host families group without an admin agent on the box. The git remote the grouping keys on, and the gateway ports, are root-only reads that only the host's own carrier can supply. A host whose connector is down reports neither, and is drawn as a family of one beside the siblings it shares an origin with.
A host that renders as a bare name has no live carrier. Check its connector:
systemctl status agentctl-host-dial # on that host
Linking two hosts¶
This is CLI-only, there is no join wizard. The primitives:
agentctl fleet reachable # on the new host: is the shared remote reachable? repo empty?
agentctl fleet seed # on the existing host, only if the shared repo is still empty
agentctl fleet adopt # on the new host: fetch + reset onto the shared ledger
agentctl fleet sync # either side, between join steps: pull the shared repo
agentctl apply # either side: converge to the pulled ledger
agentctl fleet adopt --force adopts over a non-empty local ledger. Once more than two hosts
are in the family, agentctl fleet apply runs one apply per host.
See Multi-host fleet § Joining a new host for the full ordered runbook, command by command.