How nysakun/website-uptime-monitor-updated works
This uptime-monitoring application checks domains, IPs, and URLs through CLI and web/API entry points, then stores results for history and uptime reporting. Its main flow validates a target, probes DNS/HTTP with redirect safety, records a result, and presents status or history. The README also documents dashboard watchlists and background monitoring. Source excerpts show most direct calls; the dashboard is served from index.html, while its browser-side API interactions are documented but not sampled.
Main entry points: api.py REST API · database.py Check and watch storage · checker.py Target checker · cli.py CLI commands
Components 16
User interfaces
- CLI commands
cli.py - CLI entry
main.py - Dashboard page
index.html - REST API
api.py
Check and safety
- Target checker
checker.py - Target safety
safety.py - Failure explanations
diagnose.py
Watch monitoring
- Watch worker
worker.py - Watchlist controls
api.py
History and reports
- Check and watch storage
database.py - Uptime statistics
stats.py
API controls
- IP rate limiter
ratelimit.py
Other components
- CLI user
- Dashboard user
- API client
- SQLite or MySQL
Connections 23
- CLI user → CLI entry: runs
README.md - CLI entry → CLI commands: invokes
main.py - CLI commands → Target checker: checks targets
cli.py - CLI commands → Check and watch storage: saves and reads
cli.py - CLI commands → Uptime statistics: requests reports
cli.py - Dashboard user → Dashboard page: uses
README.md - Dashboard page → REST API: calls API
- API client → REST API: requests
README.md - REST API → Target checker: checks target
api.py - REST API → Target safety: validates targets
api.py - REST API → Check and watch storage: reads and saves
api.py - REST API → Uptime statistics: builds reports
api.py - REST API → IP rate limiter: limits requests
api.py - Target checker → Target safety: checks redirect IPs
README.md - Target checker → Failure explanations: explained by
- REST API → Watch worker: starts and stops
api.py - REST API → Watchlist controls: handles watchlist
api.py - Watchlist controls → Check and watch storage: updates watchlist
api.py - Watch worker → Check and watch storage: reads targets, saves checks
worker.py - Watch worker → Target safety: filters targets
worker.py - Watch worker → Target checker: checks targets
worker.py - Uptime statistics → Check and watch storage: queries history
stats.py - Check and watch storage → SQLite or MySQL: uses configured engine
README.md