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

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.0.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.0.0
File Size Uploaded Provenance Actions
chap_checker-1.0.0.tar.gz 882.0 kB With provenance Details for chap_checker-1.0.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for chap-checker 1.0.0
File Actions
chap_checker-1.0.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for chap_checker-1.0.0-py3-none-win_amd64.whl
chap_checker-1.0.0-py3-none-musllinux_1_2_x86_64.whl Python 3 none Linux musl 1.2+ x86-64 Details for chap_checker-1.0.0-py3-none-musllinux_1_2_x86_64.whl
chap_checker-1.0.0-py3-none-musllinux_1_2_aarch64.whl Python 3 none Linux musl 1.2+ ARM64 Details for chap_checker-1.0.0-py3-none-musllinux_1_2_aarch64.whl
chap_checker-1.0.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.0.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
chap_checker-1.0.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for chap_checker-1.0.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
chap_checker-1.0.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for chap_checker-1.0.0-py3-none-macosx_11_0_arm64.whl
chap_checker-1.0.0-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for chap_checker-1.0.0-py3-none-macosx_10_12_x86_64.whl

Total release size: 48.9 MB

Release files / chap_checker-1.0.0.tar.gz

Download URL chap_checker-1.0.0.tar.gz
Size 882.0 kB
Tags Source
SHA-256 checksum
How to use checksums
29cc5fc637d7ddc07464fb3b4c13633eac233b2765211b800b745556b7c40a79
BLAKE2b-256 checksum
How to use checksums
08a98e436958ca3ef1643082c0dae02a959e731a4f8dd6abf3f70a52d7e360c3
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.0.0-py3-none-win_amd64.whl

Download URL chap_checker-1.0.0-py3-none-win_amd64.whl
Size 6.7 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
8ffbf0b371c646d472895d12f62c73c3150931dfff3db8bd6514bd874a1598c7
BLAKE2b-256 checksum
How to use checksums
10e036585a707921a719060e5a337ca37fe45ba3aaa42d063229164330c90a7a
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.0.0-py3-none-musllinux_1_2_x86_64.whl

Download URL chap_checker-1.0.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
638103838b7a4fac55f5406715726e0f518c0747476ed99b033058eda49a2a00
BLAKE2b-256 checksum
How to use checksums
3bd210e30d6cc8aff1989a6cc470cdb267dd59ce0d43e3a160f51ad72182136c
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.0.0-py3-none-musllinux_1_2_aarch64.whl

Download URL chap_checker-1.0.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
46d4e5f00e58f615dba4c359102bba806b646cf838c804eb270eac920aae5637
BLAKE2b-256 checksum
How to use checksums
b4caea97b30216439a353a3c84e823fa5d27196c8d7070c560acca917601c1d2
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.0.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL chap_checker-1.0.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
f9d5c52180b41c9c470e6248ce2cad38dca0412ceaf6b081c3397a3974132ef7
BLAKE2b-256 checksum
How to use checksums
db52bcd7f14ada23e45ecb70270801f4690121eae7353915c56d3a107237ad00
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.0.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL chap_checker-1.0.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
d083b6286abde04d3c1c29ebcedcdb6db1c13e643294d29c56b39e691865c5eb
BLAKE2b-256 checksum
How to use checksums
cdb67e21547ba5c7e08fc5e9a8872e37778333b5407bb0ead1a0ba198c5ed33b
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.0.0-py3-none-macosx_11_0_arm64.whl

Download URL chap_checker-1.0.0-py3-none-macosx_11_0_arm64.whl
Size 6.7 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
eb706c17a190d4c47a871804e818800da76a1301f1b3b03f8db3bfbbe06cb447
BLAKE2b-256 checksum
How to use checksums
151ada624a3bc70e7f1972fc67916deb6cb28c2c552a8eca64774009e07fe89f
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.0.0-py3-none-macosx_10_12_x86_64.whl

Download URL chap_checker-1.0.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
365aa1e06109d6a334f1c53a7c81c211b45f654940dca4f9493643711461cc14
BLAKE2b-256 checksum
How to use checksums
1c8ff52386476532fe15ace68510a961b4f19e4dfbe8ab1da9cea8eaa4064f0c
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.0.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.0.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