Agent: bash script run hourly by a hardened systemd timer on Debian 12/13 and Ubuntu 24.04. Collects running vs installed kernel (needrestart when available), pending/security updates via a read-only apt simulation, reboot-required state and apt list freshness, and POSTs them as JSON. Server: stdlib-only Python + SQLite (system python3 >= 3.11). Token-bound ingest API, login-protected dashboard with per-host status (stale/reboot/update/ok) and history, admin CLI, systemd unit and installer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
14 lines
335 B
SYSTEMD
14 lines
335 B
SYSTEMD
[Unit]
|
|
Description=Periodically report kernel and update status to kernelwatch
|
|
|
|
[Timer]
|
|
# Report soon after boot so a reboot shows up on the dashboard quickly,
|
|
# then hourly with jitter so the fleet doesn't report all at once.
|
|
OnBootSec=2min
|
|
OnCalendar=hourly
|
|
RandomizedDelaySec=15min
|
|
Persistent=true
|
|
|
|
[Install]
|
|
WantedBy=timers.target
|