Flag hosts whose reported hostname differs from their registered name #13

Merged
patrick merged 2 commits from feat/hostname-mismatch into main 2026-10-30 01:22:28 +00:00
Showing only changes of commit 201a1c5f4b - Show all commits
+7
View File
@@ -59,6 +59,13 @@ How the agent works it out:
- **Agent version**: each report includes it. Hosts running an older agent - **Agent version**: each report includes it. Hosts running an older agent
than the server shipped with get a note to run `agent/deploy.sh`; their status than the server shipped with get a note to run `agent/deploy.sh`; their status
isn't changed. isn't changed.
- **Hostname check**: each report includes the host's own name. If its first
DNS label differs from the name the host is registered under (ignoring case),
the row gets a note: "registered as web01 but reports itself as db01". This
catches a token copied to the wrong machine. It never changes the status. A
host you registered under a custom label (`<ssh target> <name>` in
`agent/hosts`) will always show the note; register it under its `hostname -s`
to clear it.
- **Available updates**: a simulated `apt-get dist-upgrade`. It is read-only, takes - **Available updates**: a simulated `apt-get dist-upgrade`. It is read-only, takes
no locks and writes no cache files. `dist-upgrade` is used so that new-ABI kernel no locks and writes no cache files. `dist-upgrade` is used so that new-ABI kernel
packages pulled in by the meta-package show up. Lines whose origin contains packages pulled in by the meta-package show up. Lines whose origin contains