How tomi3-11/sentinel-monitor works
Sentinel is a local CLI for checking configured websites’ uptime and SSL certificate expiry. The main workflow loads YAML settings and site targets, runs concurrent checks, and displays a responsive terminal report. The checker uses async HTTP HEAD requests for uptime and a background-thread TCP/TLS probe for certificate expiry. The README also describes optional webhook configuration, but the sampled code only parses that setting; it does not show alert delivery. Relationships below are based on the README and sampled source.
Main entry points: cli.py CLI entry · checker.py Concurrent runner · config.py Config loader · ssl_utils.py SSL probe
Components 9
CLI and output
- CLI entry
monitor/cli.py - Terminal report
monitor/cli.py
Configuration
- Targets YAML
- Config loader
monitor/config.py
Concurrent checks
- Concurrent runner
monitor/checker.py - Uptime probe
monitor/checker.py - SSL probe
monitor/ssl_utils.py
Other components
- Operator
- Target websites
Connections 13
- Operator → CLI entry: runs
README.md - CLI entry → Targets YAML: selects config
monitor/cli.py - CLI entry → Config loader: loads config
monitor/cli.py - Targets YAML → Config loader: provides YAML
monitor/config.py - CLI entry → Concurrent runner: starts checks
monitor/cli.py - Config loader → Concurrent runner: provides targets
monitor/cli.py - Concurrent runner → Uptime probe: dispatches concurrently
monitor/checker.py - Uptime probe → Target websites: sends HTTP HEAD
README.md - Concurrent runner → SSL probe: runs in thread
monitor/checker.py - SSL probe → Target websites: reads certificate
monitor/ssl_utils.py - Concurrent runner → CLI entry: returns results
monitor/cli.py - CLI entry → Terminal report: renders results
monitor/cli.py - Terminal report → Operator: prints report
monitor/cli.py