How anrighe/webapp-monitor-tool works
WebApp Monitor Tool loads and validates JSON configuration, constructs monitors for active apps, performs timed/retried HTTP checks, and aggregates status and latency results. The runner reports outcomes through logging and sends administrator email for checks still failing after retries. The graph includes configuration, monitoring, orchestration, and notification/reporting. Some relationships are supported only by README workflow documentation; unsampled implementation details are not inferred.
Main entry points: main.cpp Application entry · health_check_runner.cpp Health check runner · config.cpp Config loader · i_endpoint_monitor.cpp Monitor retry loop
Components 15
Configuration
- Config loader
src/config.cpp - App settings
include/config.hpp
Health monitoring
- Monitor retry loop
src/i_endpoint_monitor.cpp - HTTP monitor
src/http_endpoint_monitor.cpp - Health check result
include/health_check_result.hpp
Run orchestration
- Application entry
src/main.cpp - Health check runner
src/health_check_runner.cpp
Reporting and alerts
- Logger setup
src/logger.cpp - Email sender
src/email_sender.cpp - Text formatter
include/text_formatter.hpp
Other components
- Operator
- JSON config
- Monitored HTTP service
- Log file
- SMTP service
Connections 19
- Operator → Application entry: starts
src/main.cpp - Application entry → Config loader: loads
src/main.cpp - Operator → JSON config: provides
- Config loader → JSON config: reads JSON
- Config loader → App settings: creates
src/config.cpp - Application entry → Logger setup: initializes
src/main.cpp - Application entry → Health check runner: runs
src/main.cpp - Application entry → HTTP monitor: constructs
src/main.cpp - Health check runner → App settings: reads apps
- Health check runner → Monitor retry loop: runs checks
- Monitor retry loop → HTTP monitor: dispatches request
src/i_endpoint_monitor.cpp - HTTP monitor → Monitored HTTP service: sends HTTP
- Monitor retry loop → Health check result: returns result
src/i_endpoint_monitor.cpp - Health check runner → Health check result: aggregates
- Health check runner → Logger setup: logs outcomes
- Logger setup → Log file: writes logs
- Health check runner → Email sender: alerts failures
- Email sender → SMTP service: sends email
- Application entry → Text formatter: formats errors
src/main.cpp