Files
kernel-automation/docs/server.md
T
patrickandClaude Sonnet 5.5 77a880880a Move README sections into docs/ pages
Content is moved verbatim (checked line by line against the old README). Each
page gets a title and a link back to the README; H3 sections that become pages
of their own are promoted to H2. The README itself is trimmed next.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 12:07:31 -04:00

38 lines
1.7 KiB
Markdown

# Server
[← kernelwatch](../README.md)
## Install and upgrade
On the dashboard host:
```sh
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`](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.
## 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
```