Lightweight URL uptime monitor with response time measurement and history tracking.
# Check one or more URLs
python3 scripts/uptimecheck.py check https://github.com https://api.example.com
# Check from a file (one URL per line, # comments supported)
python3 scripts/uptimecheck.py check -f urls.txt
# Save results to history for trend analysis
python3 scripts/uptimecheck.py check https://myapi.com --save
# Custom timeout (default 10s)
python3 scripts/uptimecheck.py check https://slow-api.com -t 30
# Recent checks
python3 scripts/uptimecheck.py history
# Filter by URL
python3 scripts/uptimecheck.py history --url github.com
# Last N entries
python3 scripts/uptimecheck.py history -n 100
Results saved to ~/.uptimecheck/checks.jsonl — one JSON object per line with url, status, ms, ok, timestamp.
共 1 个版本