Split the README into an overview and docs/ pages #21
No files matched your search
@@ -2,6 +2,8 @@
|
||||
|
||||
[← kernelwatch](../README.md)
|
||||
|
||||
Installing the agent on hosts, one at a time or across the whole fleet.
|
||||
|
||||
## Adding a host
|
||||
|
||||
On the server:
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
|
||||
[← kernelwatch](../README.md)
|
||||
|
||||
ntfy notifications for stale hosts, pending reboots and updates, plus heartbeat monitoring so you find out if kernelwatch itself stops.
|
||||
|
||||
## Stale-host, reboot and update alerts (ntfy)
|
||||
|
||||
The server can notify an [ntfy](https://ntfy.sh/) topic when a host stops
|
||||
|
||||
+9
-1
@@ -2,6 +2,8 @@
|
||||
|
||||
[← kernelwatch](../README.md)
|
||||
|
||||
Running the tests and a local server.
|
||||
|
||||
```sh
|
||||
make test # unit + integration tests (stdlib unittest)
|
||||
make lint # shellcheck, if available
|
||||
@@ -15,11 +17,15 @@ The tests run a real server on an ephemeral port. They also run the real agent
|
||||
script against stubbed `dpkg-query`/`apt-get`/`needrestart`/`uname` and a fake
|
||||
filesystem root (`KERNELWATCH_ROOT`), including one end-to-end agent → server
|
||||
report.
|
||||
|
||||
Both installers (`agent/install.sh`, `server/install.sh`) run for real in the tests
|
||||
against a fake root: `KERNELWATCH_ROOT` prefixes every path they write and skips
|
||||
their root check, and `systemctl`, `apt-get`, `useradd` and the like are stubs that
|
||||
log their arguments. Don't set it on a real host.
|
||||
|
||||
`tests/test_docs.py` checks that every relative link and `#anchor` in the README
|
||||
and `docs/` resolves, so move or rename a heading and it tells you what broke.
|
||||
|
||||
Run a local server against a scratch database:
|
||||
|
||||
```sh
|
||||
@@ -32,5 +38,7 @@ export KERNELWATCH_CONFIG=/tmp/kw.toml
|
||||
## Ideas for later
|
||||
|
||||
- Additional notification channels
|
||||
- A JSON endpoint for scripting
|
||||
- An HTTP endpoint for `kernelwatch status`, behind a hashed API token and your
|
||||
proxy's IP allow-list, if something has to poll remotely (the CLI already
|
||||
covers scripting on the dashboard host)
|
||||
- Grouping or tagging hosts (prod/staging, location)
|
||||
@@ -2,6 +2,8 @@
|
||||
|
||||
[← kernelwatch](../README.md)
|
||||
|
||||
How each host's status is decided, and how the agent collects the facts behind it.
|
||||
|
||||
Each host gets one status. When several apply, the worst one wins:
|
||||
|
||||
| Status | Meaning |
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
|
||||
[← kernelwatch](../README.md)
|
||||
|
||||
Day-to-day tasks: querying the fleet from a script, and backing up the database.
|
||||
|
||||
## Scripting: `kernelwatch status`
|
||||
|
||||
`kernelwatch status` prints the fleet the way the dashboard shows it, from the
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
|
||||
[← kernelwatch](../README.md)
|
||||
|
||||
How to put TLS, and optionally extra access control, in front of the server.
|
||||
|
||||
## TLS reverse proxy
|
||||
|
||||
The server speaks plain HTTP on `127.0.0.1:8080`. Put a TLS proxy in front of it.
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
|
||||
[← kernelwatch](../README.md)
|
||||
|
||||
How kernelwatch is locked down, and what it deliberately can't do.
|
||||
|
||||
- **Host identity comes from the token, not the payload.** A host can only
|
||||
report as itself. Tokens are 256-bit random values; only their SHA-256 is stored.
|
||||
- **Report rate limit.** A report arriving less than `report_min_interval_seconds`
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
|
||||
[← kernelwatch](../README.md)
|
||||
|
||||
Installing and upgrading the dashboard server, and the admin commands.
|
||||
|
||||
## Install and upgrade
|
||||
|
||||
On the dashboard host:
|
||||
|
||||
Reference in new issue
Block a user