Host health from the Linux agent, agent self-update, and disk forecast in /metrics
- Linux agent v4: failed systemd services, SMART disk health, ZFS pool state, pacman updates; SMART/ZFS and self-update run in the ExecStartPre=-+ step outside the sandbox - Server: hosts' health stored (servers.host_health, migration 0029), alerts under a new "Failing services" kind plus disk/ZFS alerts, Host health card, Prometheus series - Agent self-update (Linux v4, Windows v3): admin switch on the Servers page, checksum-verified download, atomic replace; GET /api/agent/report/update - homelab_server_disk_days_to_full in /metrics - Tests (server, real PowerShell against a fake server) and docs Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
540ab704b7
commit
5dc6cea69c
38 files changed
+3884
-73
No files matched your search
@@ -450,6 +450,15 @@ to date"; run its install command again to update its agent (how, and how to
|
||||
tell it worked: [AGENT_UPDATE.md](AGENT_UPDATE.md)). It only looks: to apply
|
||||
updates, run a playbook.
|
||||
|
||||
**Host health and automatic agent updates.** The Linux agent (version 4) also reports services that have
|
||||
failed, each disk's SMART verdict, temperature and wear, and ZFS pool state. They show on a server's page
|
||||
(*Host health*) and become alerts — a failed service is a warning under its own kind, a failing disk or a pool that isn't
|
||||
ONLINE is critical — with the same maintenance silencing, notifications and runbook links as other alerts. Disk space
|
||||
heading for full was already forecast from each server's history (alert, weekly digest, trend note); `/metrics`
|
||||
now carries it too as `homelab_server_disk_days_to_full`. **Servers → Update agents automatically** (off by default) lets
|
||||
an agent that is behind download the newer script from here, check it against a SHA-256 the server gives, and replace itself.
|
||||
How it works and what it can't do: [AGENT_UPDATE.md](AGENT_UPDATE.md).
|
||||
|
||||
**Runbooks.** Write down what to do when something is wrong — "if elsa is down,
|
||||
check the UPS first, then…" — on a server's page (the Runbooks card) or an
|
||||
integration's card. A note can be for anything about the thing, or for one kind of
|
||||
|
||||
Reference in new issue
Block a user