Show AngryOxide's version, uptime and database lag in the health check #110

Merged
aluminum-ice merged 1 commit from feature/health-angryoxide into main 2026-10-31 03:56:23 +00:00
Owner

What this PR does

Makes scripts/pull-health.sh able to tell whether a new AngryOxide build is doing its job, starting with v0.9.4 (batched kismet-database writes).

  • Which AngryOxide runs: the binary the capture service uses (the stock /usr/bin/angryoxide, or one set with ANGRYOXIDE in the unit's environment, e.g. a systemd drop-in for testing a build) and its --version, as an INFO line in the verdict.
  • Memory with uptime: "AngryOxide 180 MB (2% of RAM) after 52 min running", so two checks a while apart show whether memory is flat or climbing. The 30%-of-RAM warning stays.
  • Database lag: how far the kismet database's newest row trails the capture file's last write. While capturing: OK up to 60 s, WARN up to 5 min, FAIL beyond ("its writes can't keep up"). With capture off it's INFO for the last run. If the database can't be read just then (busy, or left mid-write), that's INFO.

The database lag is one read-only query for MAX(ts_sec), the only thing read from the database: no rows, addresses or names. The report still holds counts, sizes, ages and states only, and the header and README say exactly that.

Checklist

  • Lint passes — make lint passes locally (shellcheck included).
  • Tests pass — no package code changes. Smoke-tested off the device: with a database 12 minutes behind its capture file the verdict FAILs, with one 20 seconds behind it's OK, and the memory line reports the running time.
  • Nothing real: no secrets, no personal information, no real data.
  • Consent gates intact. Read-only, as before: nothing started or stopped, no management-link tools, no sudo.
  • Docs updated in the same PR — scripts/README.md.
  • Commit messages are short and imperative.

Release impact

  • App-layer-safe — the script isn't installed on devices.

🤖 Generated with Claude Code

## What this PR does Makes `scripts/pull-health.sh` able to tell whether a new AngryOxide build is doing its job, starting with v0.9.4 (batched kismet-database writes). - **Which AngryOxide runs:** the binary the capture service uses (the stock `/usr/bin/angryoxide`, or one set with `ANGRYOXIDE` in the unit's environment, e.g. a systemd drop-in for testing a build) and its `--version`, as an INFO line in the verdict. - **Memory with uptime:** "AngryOxide 180 MB (2% of RAM) after 52 min running", so two checks a while apart show whether memory is flat or climbing. The 30%-of-RAM warning stays. - **Database lag:** how far the kismet database's newest row trails the capture file's last write. While capturing: OK up to 60 s, WARN up to 5 min, FAIL beyond ("its writes can't keep up"). With capture off it's INFO for the last run. If the database can't be read just then (busy, or left mid-write), that's INFO. The database lag is one read-only query for `MAX(ts_sec)`, the only thing read from the database: no rows, addresses or names. The report still holds counts, sizes, ages and states only, and the header and README say exactly that. ## Checklist - [x] **Lint passes** — `make lint` passes locally (shellcheck included). - [x] **Tests pass** — no package code changes. Smoke-tested off the device: with a database 12 minutes behind its capture file the verdict FAILs, with one 20 seconds behind it's OK, and the memory line reports the running time. - [x] **Nothing real: no secrets, no personal information, no real data.** - [x] **Consent gates intact.** Read-only, as before: nothing started or stopped, no management-link tools, no sudo. - [x] **Docs updated in the same PR** — `scripts/README.md`. - [x] Commit messages are short and imperative. ## Release impact - [x] **App-layer-safe** — the script isn't installed on devices. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Show AngryOxide's version, uptime and database lag in the health check
All checks were successful
Test / test (pull_request) Successful in 26s
Lint / lint (pull_request) Successful in 33s
Test / test (push) Successful in 21s
Lint / lint (push) Successful in 31s
55cbb8f2a6
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
aluminum-ice deleted branch feature/health-angryoxide 2026-10-31 03:56:28 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
aluminum-ice/kestrel!110
No description provided.