Skip to main content

pulsecheck

English · فارسی

Self-hosted uptime monitor. It checks HTTP(S) endpoints, TCP ports and hosts (ping) on a schedule, tracks up / down / slow state, and sends alerts through shoutrrr (Slack, Telegram, Discord, email, ntfy and 20+ more). One YAML file, one state file, no dashboard, no git history.

Features

  • HTTP checks: method, headers, body, expected status, redirect limit, max response time, "slow" (degraded) threshold
  • TLS certificate expiry warnings (ssl_warn_days) and expired-certificate failures
  • TCP and ping checks, each optionally forced over IPv4 or IPv6 (ip_version)
  • Alerts only on change, down_after to ignore blips, optional repeat reminders (remind_every)
  • Per-site tags, intervals and alert routing; UTC maintenance windows
  • Editable alert texts by key (messages:)
  • status (text, JSON, markdown) and report (uptime %, response times) without a dashboard
  • OpenTelemetry push (OTLP/HTTP JSON metrics and logs) to any collector or webhook
  • Setup commands: init (config, .env, shoutrrr, cron; no questions, flags decide), env, validate, test-notify to every channel, update
  • ${ENV} substitution, so secrets stay out of the config
  • Runs from GitHub Actions, GitLab CI, cron, or serverless on Vercel and Cloudflare Workers (see the limits)
  • Python 3.12–3.15 (3.15 preferred), managed with uv

Install

uv tool install pulsecheckcli     # or: pipx install pulsecheckcli
pulsecheck init                   # config + .env + shoutrrr + cron job (Linux)
pulsecheck env                    # add your tokens
pulsecheck validate && pulsecheck test-notify

The package is pulsecheckcli; the command is pulsecheck, and pck is a short alias for it. All commands: Commands.

Or: one line from GitHub (Linux)

curl -fsSL https://raw.githubusercontent.com/arian24b/pulsecheck/main/install.sh | bash

It installs the PyPI package pulsecheckcli with uv tool and runs pulsecheck init. Then run pulsecheck env, pulsecheck validate and pulsecheck test-notify.

How it works

Each pulsecheck run loads the YAML, picks the sites whose interval has elapsed (--force checks all) and checks them concurrently (HTTP, TCP or ping). The result goes into a SQLite file (state_file, default pulsecheck.db). A site becomes down after down_after consecutive failures, and degraded when it answers slower than slow_ms. An alert is sent only when the state changes (plus optional reminders), by running shoutrrr send through its docker image or a local binary. Nothing stays running: schedule run with cron, GitHub Actions or GitLab CI.

Example run against a local web server and a closed port (down_after: 1):

$ pulsecheck -c pulsecheck.yml run --fail-on-down; echo $?
local: up 30ms
closed: down 0ms ConnectionRefusedError: [Errno 111] Connection refused
1
$ pulsecheck -c pulsecheck.yml status
🟢 local                up        for 0s    last 0s     24h 100.0%
🔴 closed               down      for 0s    last 0s     24h 0.0%

Quick start (from a clone)

uv sync
cp pulsecheck.example.yml pulsecheck.yml     # edit it
uv run pulsecheck validate
uv run pulsecheck test-notify
uv run pulsecheck run [--force] [--fail-on-down] [--tag prod]
uv run pulsecheck status [--json|--md]
uv run pulsecheck report [--json]

shoutrrr runs from its docker image when Docker works, otherwise from the shoutrrr binary on PATH. ping is needed for type: ping.

Want it running on GitHub Actions with the fewest files? Click Use this template on pulsecheck-template: you get just pulsecheck.yml, one workflow and a short README. Keep your copy private: pulsecheck.yml lists your hostnames.

Documentation (wiki)

English فارسی
Overview Home خانه
Every command Commands دستورها
Install and first run Getting started شروع سریع
Every YAML key (types, defaults) YAML reference مرجع YAML
Every setting, explained Configuration تنظیمات
Alert services Notifications اعلان‌ها
GitHub / GitLab / cron Scheduling زمان‌بندی
Vercel / Cloudflare Serverless سرورلس
How it works, what is tested Design notes یادداشت‌های طراحی
Problems Troubleshooting عیب‌یابی

Questions: Discussions. Contributing: CONTRIBUTING. Security: SECURITY.

Troubleshooting and security

  • No alerts arrive: run pulsecheck test-notify. It sends to every channel and shows the shoutrrr error, if any. Also check notify.events and that the site has been failing for down_after runs.
  • type: ping fails: the ping command must be installed.
  • pulsecheck.yml lists your hostnames, and .env holds tokens. Keep both out of public repositories and reference secrets as ${VAR}.
  • More: Troubleshooting.

Development

uv run pytest -q && uv run ruff check . && uv run ruff format --check .

Commit messages follow Conventional Commits (feat:, fix:, ...): the version, CHANGELOG.md, the GitHub release and the PyPI upload are generated from them by python-semantic-release.

License

MIT

Common commands

Built on cfuicli, so it looks and behaves like the other tools in this family.

pulsecheck help [command]     # help; -h works on any command
pulsecheck version            # version and git repository (also: -v)
pulsecheck update [--check]   # update the tool itself; --check only compares versions
pulsecheck -q ...             # quiet: no banner or notes (or PULSECHECK_QUIET=1)
  • A missing required option is asked for when you run the tool in a terminal. In a pipe or in CI it stops with --flag is required. Pass --flag <value> or run interactively. (exit code 2).
  • Errors appear in a red box on stderr with a non-zero exit code. Ctrl-C exits with 130.
  • Color is used only on a terminal. NO_COLOR=1 turns it off.
  • pulsecheck init takes --no-cron, --no-download, --force and --cron EXPR; --remove-cron removes the cron job it added. The global -c/--config FILE can go before or after the command.

Metadata

Release files for pulsecheckcli 0.2.1

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

Source distribution (sdist)

Source distribution for pulsecheckcli 0.2.1
File Size Uploaded Provenance Actions
pulsecheckcli-0.2.1.tar.gz 26.3 kB Without provenance Details for pulsecheckcli-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pulsecheckcli 0.2.1
File Interpreter ABI Platform Actions
pulsecheckcli-0.2.1-py3-none-any.whl Python 3 none any Details for pulsecheckcli-0.2.1-py3-none-any.whl

Total release size: 56.9 kB

Release files / pulsecheckcli-0.2.1.tar.gz

Download URL pulsecheckcli-0.2.1.tar.gz
Size 26.3 kB
Tags Source
SHA-256 checksum
How to use checksums
265e34a535c4e061e1227fdb810b8cc63fbc88d5750905ace7f438b43a4a15c4
BLAKE2b-256 checksum
How to use checksums
59fc3c2f90d06e8b3dc2ff54e4db81a2e9fbb5a1de252c7a767c53ab4b0e475b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pulsecheckcli-0.2.1-py3-none-any.whl

Download URL pulsecheckcli-0.2.1-py3-none-any.whl
Size 30.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2acfd185365acb42cfb04308e05f309683051a45137d75d1b544d45202fafcc4
BLAKE2b-256 checksum
How to use checksums
dd1b67693a62dcb731ab3683911f34a52b7434619e09c771113e12fc2beb6416
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for pulsecheckcli 0.2.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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