DEV Community

devbox-zero-ops
devbox-zero-ops

Posted on

I Open-Sourced a Zero-Dependency Python CLI to Check SSL Expiry & SQLite WAL Backups on $5 VPS Servers

Every time I spin up a $5 VPS or Docker host, I find myself writing the same two quick sanity-check scripts:

  1. Are my HTTPS endpoints returning 200 OK, how fast, and how many days until the TLS/SSL certificate expires?
  2. Is my production SQLite WAL database healthy (PRAGMA quick_check / integrity_check), and can I grab a lock-safe online snapshot without corrupting live writes?

So I cleaned it up into a single zero-dependency Python 3.8+ stdlib CLI (MIT license, 6/6 automated tests passing) and published it free on GitHub:

👉 github.com/devbox-zero-ops/vps-ops-check (v1.0.0)


Quickstart (No pip install Required)

git clone https://github.com/devbox-zero-ops/vps-ops-check.git
cd vps-ops-check

# 1. Check HTTP status, latency & real TLS cert expiry days
python3 vps_ops_check.py http https://example.com --ssl-warn-days 14

# 2. Verify SQLite WAL mode, integrity & take a lock-safe online .backup()
python3 vps_ops_check.py sqlite /var/lib/app/data.db --backup-to /tmp/data-safe.db --full-integrity
Enter fullscreen mode Exit fullscreen mode

Both subcommands also support --json output and return non-zero exit codes on HTTP errors, expiring certificates, or failed integrity checks—making them drop-in ready for CI pipelines or cron wrappers.


Need Full Automated Production Ops?

vps-ops-check is intentionally a lightweight free CLI for instant ad-hoc checks. If you want full 24/7 automated monitoring, encrypted GFS backups, Telegram/Discord/HMAC alerts, static HTML status pages, and Docker/systemd templates out of the box (MIT commercial license):

  • 🔥 Self-Hosted Python Ops Bundle — All 3 Production Kits for $29 (Save 40%)
    • CronPulse Pro ($19) — Automated uptime, TLS/SSL expiry & API monitor with SQLite WAL incident cooldowns + static HTML status page
    • BackupVault Pro ($14.99) — Fernet/PBKDF2 encrypted backups, GFS rotation & automated restore-drill verification
    • WebWatch Pro ($14.99) — Playwright + SQLite price/restock watcher with Telegram screenshot alerts

Star the repo if you find vps-ops-check handy, and drop a comment if there's another quick VPS check you'd like added!

Top comments (0)