chap-checker
An uptime monitor for the servers around Chap: DHIS2 instances that
integrate with chap-core through a DHIS2 route, chap-core itself, CAPS,
Open Geo Service deployments,
and any other URL. Each kind of server is a plugin with its own checks.
Cron-friendly, with optional Slack / generic-webhook alerts on status
transitions, a long-running daemon that serves a browser dashboard (designed
for a TV / kiosk) and a JSON state API, and a terminal dashboard for the
operator at a desk (locally or pointed at a remote daemon).
A single binary, written in Rust and published to PyPI as a wheel per
platform: uvx chap-checker runs it with nothing else installed.
Documentation: https://dhis2-chap.github.io/chap-checker
Install
# One-shot run without installing (no PATH pollution):
uvx chap-checker --version
uvx chap-checker verify --url https://dhis2.example.com --token-env DHIS2_TOKEN
# Persistent install into uv's isolated tool environment:
uv tool install chap-checker
chap-checker --version
# Upgrade to the latest release later:
uv tool upgrade chap-checker
uv tool upgrade stays within the version an install was pinned to: a tool
installed as chap-checker==0.12.0 stays on 0.12.0. Move such an install with
uv tool install chap-checker@latest.
Quick start
The fastest path is chap-checker init, which drops a working chap-checker.toml (chmod 600) pointed at the public DHIS2 demo so you can verify the tool runs before adding your own instances:
chap-checker init
chap-checker verify # OK on the play demo
Then edit chap-checker.toml. A typical config:
[instances.prod]
url = "https://dhis2.example.com"
username = "ops"
password_env = "PROD_PASS"
alerts = ["slack", "webhook"]
[alerts.slack]
webhook_url_env = "SLACK_WEBHOOK_URL"
[alerts.webhook]
url_env = "INCIDENT_BUS_URL"
headers = { "Authorization" = "Bearer ..." }
Discover the alert transports and copy-paste their TOML:
chap-checker alerts list # registry of available alerters with per-field comments
chap-checker alerts test --kind both # fire a synthetic OK->FAIL + FAIL->OK pair
Ad-hoc verify against a single instance (no config needed):
# With a DHIS2 Personal Access Token (recommended on modern servers):
export PROD_TOKEN=...
chap-checker verify --url https://dhis2.example.com --token-env PROD_TOKEN
# Or with a password (Basic auth) read from a named env var:
export PROD_PASSWORD=...
chap-checker verify --url https://dhis2.example.com --username admin --password-env PROD_PASSWORD
--password / --token inline still works but is discouraged — the value lands in shell history and ps output. Omit both and you'll be prompted on a TTY. See chap-checker.toml.example for the full config template.
Surfaces
chap-checker tui # terminal dashboard: operator-at-a-desk view
chap-checker tui --kiosk # the same, full screen, for a wall display
chap-checker serve # long-running daemon: browser dashboard at / + JSON state at /api/state
chap-checker tui --connect http://daemon-host:8765 # TUI as a thin client of a remote `serve`
Pair them: run chap-checker serve somewhere persistent (a small VM, the TV machine itself, systemd-supervised — see the server guide for the unit file). Pin a kiosk browser at the URL on the TV; operators at desks run chap-checker tui locally or chap-checker tui --connect http://daemon:8765 for the same numbers without spinning up their own check loop. Alerts fire from one place.
Plugins and built-in checks
Each instance names its kind, and each kind is a plugin with its own checks
(chap-checker plugins list shows them with a copy-paste TOML table):
kind |
What it checks |
|---|---|
dhis2 (default) |
DHIS2, and chap-core through the DHIS2 chap route |
ogs |
An Open Geo Service (openEO backend) deployment |
chap |
chap-core reached directly: /health, /system/info |
caps |
CAPS: its version, and whether it reaches chap-core and DHIS2 |
http |
Any URL: an expected status (default 2xx), and optionally body text or a JSON value |
An instance only runs the checks for its kind. Each row in the dashboards,
each row in chap-checker checks list, each entry in the JSON output:
http_2xx— unauthenticatedGET <base_url>, asserts the final response is 2xx (follows redirects);dhis2andogsdhis2_ping—/api/medhis2_system_info—/api/system/infodhis2_chap_route—/api/routes?filter=code:eq:chapdhis2_chap_ping—/api/routes/chap/run/healthdhis2_chap_system_info—/api/routes/chap/run/system/infodhis2_chap_modeling_app—/api/apps(matched byapp_hub_id)dhis2_chap_climate_app—/api/apps(matched byapp_hub_id)ogs_health—/health(liveness only)ogs_info—/info+/(version and openEO capabilities)chap_health—/healthon chap-core,statusmust besuccesschap_system_info—/system/infoon chap-core (version, revision)caps_system_info—/system/infoon CAPS (version)caps_chap,caps_dhis2— CAPS reports chap-core / DHIS2 connectedhttp_expect— any URL, withexpect_status,body_contains,json_path/json_equals
Full reference + endpoint details: Checks.
Development
make install # dev tools (uv) and a debug build (cargo)
make lint # cargo fmt + clippy
make test # cargo test
make build # the wheel + sdist into dist/, as the release does
make docs # serve docs locally
See Development for repo layout and house rules.
Contributing
PRs welcome — start with CONTRIBUTING.md. The development guide on the docs site has the long version: https://dhis2-chap.github.io/chap-checker/guides/development/.
For security issues, see SECURITY.md — please don't open a public issue.
Contributors: github.com/dhis2-chap/chap-checker/graphs/contributors.
License
Metadata
Release files for chap-checker 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| chap_checker-1.2.0.tar.gz | 884.9 kB | With provenance | Details for chap_checker-1.2.0.tar.gz |
Built distributions (wheels)
Total release size: 49.1 MB
Release files / chap_checker-1.2.0.tar.gz
| Download URL | chap_checker-1.2.0.tar.gz |
|---|---|
| Size | 884.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
12e951753e0f5c077041f485d8bfdd566d3fe609a6071137b525066304468480
|
|
BLAKE2b-256 checksum How to use checksums |
739de7c650708ccae19c55a6649ecf049abc5098193ffbc7c2ccf1ed994e27ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logRelease files / chap_checker-1.2.0-py3-none-win_amd64.whl
| Download URL | chap_checker-1.2.0-py3-none-win_amd64.whl |
|---|---|
| Size | 6.7 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
a74caa5fe152eea19365c22e5da4ee52b0b2342305c580ac48243e5e3755cb8c
|
|
BLAKE2b-256 checksum How to use checksums |
acc57ebff713cf8a804391786859099ebee1206b236e99c8fa8cd0c805c5796a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logRelease files / chap_checker-1.2.0-py3-none-musllinux_1_2_x86_64.whl
| Download URL | chap_checker-1.2.0-py3-none-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 7.2 MB |
| Tags | Linux musl 1.2+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
4020453f8635c26d32017f9dc669bec35e73c770a267ab523e354b59e1a0b73b
|
|
BLAKE2b-256 checksum How to use checksums |
89d0d1939fe4a7c026d750370d9df423aeab69116a86ad0d9c6d39151b68905a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logRelease files / chap_checker-1.2.0-py3-none-musllinux_1_2_aarch64.whl
| Download URL | chap_checker-1.2.0-py3-none-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 6.7 MB |
| Tags | Linux musl 1.2+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
cd537c079e760aff942d16d21099dc1227269d97a86d5198efae6ae0ceb40d7c
|
|
BLAKE2b-256 checksum How to use checksums |
b46e8519ed476a51c57fe2d6dbc7869e8778718b8f391c347460b9f3923f6af3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logRelease files / chap_checker-1.2.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | chap_checker-1.2.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 7.1 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
34d723e731481d59492f48504d2bb1a069e83bca71e82bac890698bc0d52ffd1
|
|
BLAKE2b-256 checksum How to use checksums |
ae79500870368e72810c679c8f5375c2a192e7379a459950ce1cd3719cf18634
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logRelease files / chap_checker-1.2.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
| Download URL | chap_checker-1.2.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
|---|---|
| Size | 6.8 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
c835daa89a5dcc483d86e20b7874f16dc704a996f2968872240bc5ac1ca12eff
|
|
BLAKE2b-256 checksum How to use checksums |
f96e7d613c22c19a698b165983a55ec8b5b498837b068a31a627f3f1e02a5eab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logRelease files / chap_checker-1.2.0-py3-none-macosx_11_0_arm64.whl
| Download URL | chap_checker-1.2.0-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 6.8 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
a99fa58abbbb86697832211312f1f3b25942d5b7914c40e6628a592c521cef83
|
|
BLAKE2b-256 checksum How to use checksums |
8b2e63c99495741956eaf606e1ee573143e47a496a2c09c3d6e10e7348fc5f27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logRelease files / chap_checker-1.2.0-py3-none-macosx_10_12_x86_64.whl
| Download URL | chap_checker-1.2.0-py3-none-macosx_10_12_x86_64.whl |
|---|---|
| Size | 7.0 MB |
| Tags | Python 3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
b2a9b6a155540ae974546bd26cb8bdd01996d22587f7a1dda55676765670661d
|
|
BLAKE2b-256 checksum How to use checksums |
c6ba05f41d6fabb3fdd90bfec74fc4ce013acf646f6d8624f61529e5822aff4f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logSecurity for chap-checker 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 8 files in this release have been uploaded with provenance metadata.
Attestation for chap_checker-1.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.