'above', 'below' and 'as above' pointed at sections that are now on other pages, so they become links; server/install.sh's pointer to the README now names docs/reverse-proxy.md; server.md gains the next steps that used to be the following README sections. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
1.9 KiB
1.9 KiB
Server
Install and upgrade
On the dashboard host:
git clone <this repo> && cd kernel-automation
sudo ./server/install.sh
sudo kernelwatch set-password admin # dashboard login
This installs to /opt/kernelwatch and keeps config in /etc/kernelwatch/server.toml
(see server/server.toml.example) and data in
/var/lib/kernelwatch. The kernelwatch.service unit runs it as the unprivileged
kernelwatch user. Re-run install.sh to upgrade; it keeps your config.
The server speaks plain HTTP on 127.0.0.1:8080. Put a TLS reverse proxy in front
of it; Reverse proxy and access control has the setups. Then
add hosts, and set up alerts and
backups.
Admin commands
sudo kernelwatch add-host NAME register a host, print its token (--token-only for scripts)
sudo kernelwatch rotate-token NAME issue a new token (old one stops working)
sudo kernelwatch remove-host NAME delete a host and its history
sudo kernelwatch list-hosts hosts and when they last reported
sudo kernelwatch status [--json] fleet status like the dashboard (--host, --level to filter)
sudo kernelwatch set-password USER create a user / change password (logs out their sessions)
sudo kernelwatch remove-user USER
sudo kernelwatch list-users
sudo kernelwatch backup PATH write a consistent copy of the database (safe while running)
sudo kernelwatch scheduled-backup dated copy in backup_dir, then prune old ones (what the timer runs)
sudo kernelwatch notify-backup-failure send the failed-backup notification now (also runs on failure)
sudo kernelwatch check-alerts check for stale, recovered, reboot and update alerts now
sudo kernelwatch test-alert send a test notification to the configured ntfy topic
sudo kernelwatch test-heartbeat ping the configured heartbeat URLs once and report