Split the README into an overview and docs/ pages #21

Merged
patrick merged 5 commits from docs/split-readme into main 2026-10-30 16:13:34 +00:00
6 changed files with 14 additions and 9 deletions
Showing only changes of commit 404086ded1 - Show all commits

No files matched your search

+1 -1
View File
@@ -31,7 +31,7 @@ missing and sets it to *list* services after apt upgrades instead of asking
interactively. Delete `/etc/needrestart/conf.d/kernelwatch.conf` to undo that. interactively. Delete `/etc/needrestart/conf.d/kernelwatch.conf` to undo that.
Add `--with-apt-update` to refresh apt's package lists before each report Add `--with-apt-update` to refresh apt's package lists before each report
(recommended on Debian, see above). It's the same as running `apt update` (recommended on Debian, see "Fresh package lists" in [How it works](how-it-works.md)). It's the same as running `apt update`
hourly: lists only, nothing is installed. If apt is busy, the refresh is hourly: lists only, nothing is installed. If apt is busy, the refresh is
skipped and the report goes ahead. `--without-apt-update` turns it off; skipped and the report goes ahead. `--without-apt-update` turns it off;
re-running the installer with neither keeps the current setting. re-running the installer with neither keeps the current setting.
+1 -1
View File
@@ -24,7 +24,7 @@ How the agent works it out:
package was upgraded in place after boot; `uname -r` didn't change, but a package was upgraded in place after boot; `uname -r` didn't change, but a
reboot is still needed. reboot is still needed.
- [`needrestart`](https://github.com/liske/needrestart)'s kernel result, for - [`needrestart`](https://github.com/liske/needrestart)'s kernel result, for
build strings the server doesn't recognise (see below). build strings the server doesn't recognise (see "Services needing a restart", below).
- **Services needing a restart** (e.g. nginx still using the old OpenSSL - **Services needing a restart** (e.g. nginx still using the old OpenSSL
after an upgrade): from `needrestart -b`, if it's installed. Ubuntu ships it; after an upgrade): from `needrestart -b`, if it's installed. Ubuntu ships it;
on Debian, install with `install.sh --with-needrestart`. Without it, the on Debian, install with `install.sh --with-needrestart`. Without it, the
+3 -3
View File
@@ -6,7 +6,7 @@
`kernelwatch status` prints the fleet the way the dashboard shows it, from the `kernelwatch status` prints the fleet the way the dashboard shows it, from the
database, with no network port or token involved. It needs `sudo`, like the other database, with no network port or token involved. It needs `sudo`, like the other
admin commands. Run it over SSH from anywhere else. [admin commands](server.md#admin-commands). Run it over SSH from anywhere else.
``` ```
$ sudo kernelwatch status $ sudo kernelwatch status
@@ -93,8 +93,8 @@ newest backup still on disk. The cause is in `journalctl -u kernelwatch-backup`.
Without `ntfy_url` it only logs that it had nothing to send to. If ntfy itself is Without `ntfy_url` it only logs that it had nothing to send to. If ntfy itself is
unreachable at that moment, the failure shows up only in the journal unreachable at that moment, the failure shows up only in the journal
(`journalctl -u kernelwatch-backup-failed`). It can't tell you that the timer (`journalctl -u kernelwatch-backup-failed`). It can't tell you that the timer
never ran at all, for example because the host was down; that needs a heartbeat never ran at all, for example because the host was down; that needs a [heartbeat
monitor. You can check delivery with monitor](alerts.md#heartbeat-is-kernelwatch-itself-running). You can check delivery with
`sudo kernelwatch notify-backup-failure`, which sends the same message. `sudo kernelwatch notify-backup-failure`, which sends the same message.
These copies sit on the dashboard host, so they protect against a corrupted or These copies sit on the dashboard host, so they protect against a corrupted or
+2 -2
View File
@@ -34,7 +34,7 @@ With either proxy, set `trust_proxy_headers = true` in `server.toml` so login
rate limiting sees real client IPs. rate limiting sees real client IPs.
If you use a private CA (e.g. Caddy's `tls internal`), give the agents its If you use a private CA (e.g. Caddy's `tls internal`), give the agents its
root cert with `--ca` (below). root cert with `--ca` (see [Agents](agents.md#adding-a-host)).
You can expose only `/api/v1/report` to the fleet network and keep the You can expose only `/api/v1/report` to the fleet network and keep the
dashboard on a VPN or tailnet. That's a proxy rule, not a kernelwatch setting. dashboard on a VPN or tailnet. That's a proxy rule, not a kernelwatch setting.
@@ -44,7 +44,7 @@ dashboard on a VPN or tailnet. That's a proxy rule, not a kernelwatch setting.
CloudPanel gives each site its own Linux user and a document root at CloudPanel gives each site its own Linux user and a document root at
`/home/<site-user>/htdocs/<domain>/`. kernelwatch doesn't use that directory. `/home/<site-user>/htdocs/<domain>/`. kernelwatch doesn't use that directory.
nginx forwards requests to the app; it doesn't serve kernelwatch's files. Install nginx forwards requests to the app; it doesn't serve kernelwatch's files. Install
with `server/install.sh` as above, so the app runs as the `kernelwatch` user with `server/install.sh` as in [Server](server.md), so the app runs as the `kernelwatch` user
with its data in `/var/lib/kernelwatch`, outside every site user's home. Leave with its data in `/var/lib/kernelwatch`, outside every site user's home. Leave
the document root empty, and keep your clone of this repo out of `htdocs`. the document root empty, and keep your clone of this repo out of `htdocs`.
+6 -1
View File
@@ -13,10 +13,15 @@ sudo kernelwatch set-password admin # dashboard login
``` ```
This installs to `/opt/kernelwatch` and keeps config in `/etc/kernelwatch/server.toml` 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 (see [`server/server.toml.example`](../server/server.toml.example)) and data in
`/var/lib/kernelwatch`. The `kernelwatch.service` unit runs it as the unprivileged `/var/lib/kernelwatch`. The `kernelwatch.service` unit runs it as the unprivileged
`kernelwatch` user. Re-run `install.sh` to upgrade; it keeps your config. `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](reverse-proxy.md) has the setups. Then
[add hosts](agents.md), and set up [alerts](alerts.md) and
[backups](operations.md#backups).
## Admin commands ## Admin commands
``` ```
+1 -1
View File
@@ -5,7 +5,7 @@
# #
# Installs to /opt/kernelwatch, config in /etc/kernelwatch/server.toml (kept # Installs to /opt/kernelwatch, config in /etc/kernelwatch/server.toml (kept
# on upgrade), data in /var/lib/kernelwatch. Then put a TLS reverse proxy in # on upgrade), data in /var/lib/kernelwatch. Then put a TLS reverse proxy in
# front (see README) and create a dashboard user: sudo kernelwatch set-password admin # front (see docs/reverse-proxy.md) and create a dashboard user: sudo kernelwatch set-password admin
set -euo pipefail set -euo pipefail
here=$(cd "$(dirname "$0")" && pwd) here=$(cd "$(dirname "$0")" && pwd)