Skip to main content

Sentinel — Uptime & SSL Monitor

A fast, minimal CLI tool to monitor website uptime and SSL certificate health concurrently from your terminal.

PyPI version License PyPI downloads Last commit Issues Code style: ruff GitHub repo size

demo


The Problem

Managing multiple projects means keeping track of domain health and SSL expiration dates manually — which is tedious and easy to miss. Sentinel gives you an instant, locally executable snapshot of your web services without the overhead of a heavy monitoring stack or an external SaaS dependency.


Key Features

  • Concurrent checks — all sites are probed simultaneously using async I/O, not one by one
  • SSL health tracking — extracts certificate expiry directly via raw TCP sockets, no third-party APIs
  • Responsive terminal UI — color-coded output that adapts to your terminal width
  • Declarative config — define all your targets in a single YAML file
  • Graceful error handling — DNS failures, timeouts, and connection drops are caught and reported per site without crashing

Installation

pip install sentinel-monitor

Or with uv:

uv tool install sentinel-monitor

Quick Start

Generate a starter config in your current directory:

sentinel init

Run the monitor:

sentinel

Point to a specific config file:

sentinel -c /path/to/targets.yaml

Check version:

sentinel --version

Configuration

settings:
  timeout: 5
  alert_webhook: ""  # optional: Discord/Slack webhook URL

sites:
  - name: "Google"
    url: "https://google.com"
  - name: "My API"
    url: "https://api.example.com"

How It Works

Sentinel is built around three components:

Configuration Manager — parses targets.yaml into typed dataclasses, validates structure, and raises actionable errors on bad input.

Concurrency Engine — an asyncio event loop dispatches all HTTP checks simultaneously via httpx. Sites are never checked sequentially.

Network Probes — two probe types run per site:

  • Uptime probe: async HTTP HEAD request — minimal bandwidth, no body fetched
  • SSL probe: raw TCP socket wrapped with ssl.SSLContext to extract and parse X.509 certificate metadata, runs in a background thread via asyncio.to_thread to avoid blocking the event loop

Development Setup

git clone https://github.com/tomi3-11/sentinel-monitor.git
cd sentinel-monitor
uv venv && source .venv/bin/activate
uv sync
sentinel -c targets.yaml

Docker

docker build -t monitor .
docker run -t monitor sentinel -c targets.yaml

License

MIT

Metadata

Release files for sentinel-monitor 0.1.4

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

Source distribution (sdist)

Source distribution for sentinel-monitor 0.1.4
File Size Uploaded Provenance Actions
sentinel_monitor-0.1.4.tar.gz 14.6 kB With provenance Details for sentinel_monitor-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sentinel-monitor 0.1.4
File Interpreter ABI Platform Actions
sentinel_monitor-0.1.4-py3-none-any.whl Python 3 none any Details for sentinel_monitor-0.1.4-py3-none-any.whl

Total release size: 25.4 kB

Release files / sentinel_monitor-0.1.4.tar.gz

Download URL sentinel_monitor-0.1.4.tar.gz
Size 14.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3ecdd15e42c8b1b35714ae55de77a6b76dd5fc15db17348f13b52031073c60a5
BLAKE2b-256 checksum
How to use checksums
ec9814462a1b1032ead481ffc2617868d5a0d91d8d4943916c5674b14f44767f
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 15, 2026.

Transparency log

Release files / sentinel_monitor-0.1.4-py3-none-any.whl

Download URL sentinel_monitor-0.1.4-py3-none-any.whl
Size 10.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
093fab4508892236206da3e20d18a1ce229441ae21a587d17c178190a13db31e
BLAKE2b-256 checksum
How to use checksums
3498ccf9981aac8531880a5489bb88ad7a1a84afa6cdfd875eec50157cedbf74
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 15, 2026.

Transparency log

Security for sentinel-monitor 0.1.4

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sentinel_monitor-0.1.4.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 15, 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