Skip to main content

chap-checker

CI PyPI version Rust 2024 License: AGPL v3 Documentation

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 — unauthenticated GET <base_url>, asserts the final response is 2xx (follows redirects); dhis2 and ogs
  • dhis2_ping — /api/me
  • dhis2_system_info — /api/system/info
  • dhis2_chap_route — /api/routes?filter=code:eq:chap
  • dhis2_chap_ping — /api/routes/chap/run/health
  • dhis2_chap_system_info — /api/routes/chap/run/system/info
  • dhis2_chap_modeling_app — /api/apps (matched by app_hub_id)
  • dhis2_chap_climate_app — /api/apps (matched by app_hub_id)
  • ogs_health — /health (liveness only)
  • ogs_info — /info + / (version and openEO capabilities)
  • chap_health — /health on chap-core, status must be success
  • chap_system_info — /system/info on chap-core (version, revision)
  • caps_system_info — /system/info on CAPS (version)
  • caps_chap, caps_dhis2 — CAPS reports chap-core / DHIS2 connected
  • http_expect — any URL, with expect_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

AGPL-3.0-or-later.

Metadata

Release files for chap-checker 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chap-checker 1.1.0
File Size Uploaded Provenance Actions
chap_checker-1.1.0.tar.gz 882.5 kB With provenance Details for chap_checker-1.1.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for chap-checker 1.1.0
File Actions
chap_checker-1.1.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for chap_checker-1.1.0-py3-none-win_amd64.whl
chap_checker-1.1.0-py3-none-musllinux_1_2_x86_64.whl Python 3 none Linux musl 1.2+ x86-64 Details for chap_checker-1.1.0-py3-none-musllinux_1_2_x86_64.whl
chap_checker-1.1.0-py3-none-musllinux_1_2_aarch64.whl Python 3 none Linux musl 1.2+ ARM64 Details for chap_checker-1.1.0-py3-none-musllinux_1_2_aarch64.whl
chap_checker-1.1.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for chap_checker-1.1.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
chap_checker-1.1.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for chap_checker-1.1.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
chap_checker-1.1.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for chap_checker-1.1.0-py3-none-macosx_11_0_arm64.whl
chap_checker-1.1.0-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for chap_checker-1.1.0-py3-none-macosx_10_12_x86_64.whl

Total release size: 49.0 MB

Release files / chap_checker-1.1.0.tar.gz

Download URL chap_checker-1.1.0.tar.gz
Size 882.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ab05dcc76a30a711a1c66f71d1188b01dd738403b7f3702f3845a729b195b2b3
BLAKE2b-256 checksum
How to use checksums
a80c2ac8c59bad065d66ecc868e2058fc6f6b640f283296b69055a18870f3d8a
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 18, 2026.

Transparency log

Release files / chap_checker-1.1.0-py3-none-win_amd64.whl

Download URL chap_checker-1.1.0-py3-none-win_amd64.whl
Size 6.7 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
e0d57a590659a9e84c04b2f752d848b80ef4953fc81f605b75fa87a43e3f00e7
BLAKE2b-256 checksum
How to use checksums
d60790542f15b50417c2054a9bf5d2bb973c0d876090d44b6c0002a55ec1980a
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 18, 2026.

Transparency log

Release files / chap_checker-1.1.0-py3-none-musllinux_1_2_x86_64.whl

Download URL chap_checker-1.1.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
e121a863f593c0e8c110aca3ed41f2a305601596077fcdaee47cc491d386e757
BLAKE2b-256 checksum
How to use checksums
289fe60a6fc7b4857fd5ebcf876d23df8d72a24b740265c4b7db7dab173abc77
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 18, 2026.

Transparency log

Release files / chap_checker-1.1.0-py3-none-musllinux_1_2_aarch64.whl

Download URL chap_checker-1.1.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
1e09989331522aaa0389e249fb4f25cce9f495c0156ed60cdd7f7c0200b4d328
BLAKE2b-256 checksum
How to use checksums
a91031e4af9f13879eb7c3216d43826158b77dd29e918b8dd03f91483881a232
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 18, 2026.

Transparency log

Release files / chap_checker-1.1.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL chap_checker-1.1.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
491f2e201f168059e44de63a22b727780b4fef5f1bc32300aec7d99be13d1950
BLAKE2b-256 checksum
How to use checksums
7ec1a278db7ace6a1a268e62860c0f7badf08cfc8d6af47a70711aea5be0e7c2
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 18, 2026.

Transparency log

Release files / chap_checker-1.1.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL chap_checker-1.1.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 6.7 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
5624ed16ff19396a917962d581e52fec9e173bfbfe4569511a7394720e9c66ea
BLAKE2b-256 checksum
How to use checksums
b7badca11aa1465489338bab67786abb7c4099b18959f882ef874f4346b51061
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 18, 2026.

Transparency log

Release files / chap_checker-1.1.0-py3-none-macosx_11_0_arm64.whl

Download URL chap_checker-1.1.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
56c2e7a98c7026ca5f2183719d2f82d2ef339226f5f1adaff4dbeef31345523d
BLAKE2b-256 checksum
How to use checksums
d3daf2c0a100f109c8c8802046ae893ce590fc72f64ad41071b26bc22714945a
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 18, 2026.

Transparency log

Release files / chap_checker-1.1.0-py3-none-macosx_10_12_x86_64.whl

Download URL chap_checker-1.1.0-py3-none-macosx_10_12_x86_64.whl
Size 6.9 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
3295c336349635b730bc10eb86fdb5dd77495024cdb83b25d46adaf2395802da
BLAKE2b-256 checksum
How to use checksums
e32ba3c0638e2cb519f19c22b519eb0f52556687a7daaf157ecf22963c66eae7
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 18, 2026.

Transparency log

Security for chap-checker 1.1.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.

Select from 8 files

Attestation for chap_checker-1.1.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 18, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page