How rajankt07/system-health-monitor works
This is a small system-health monitor: it samples CPU, memory, and disk usage, appends a report, and emails an alert when configured thresholds are exceeded. The workflow is implemented in one script. The source imports a runtime config module, but the tree contains only config.example.py; its values also do not fully match the names used by the script, so the actual runtime configuration is not shown.
Main entry points: monitor.py Monitor entry point
Components 10
Other components
- Operator
- Monitor entry point
monitor.py - Health checks
monitor.py - Report logger
monitor.py - Email alerts
monitor.py - psutil
- Runtime config
- report.log
- SMTP server
- Config example
config.example.py
Connections 10
- Operator → Monitor entry point: runs
- Monitor entry point → Health checks: calls
monitor.py - Health checks → psutil: reads metrics
monitor.py - Health checks → Runtime config: reads thresholds
monitor.py - Health checks → Monitor entry point: returns metrics
monitor.py - Monitor entry point → Report logger: calls
monitor.py - Report logger → report.log: appends report
monitor.py - Monitor entry point → Email alerts: calls when needed
monitor.py - Email alerts → Runtime config: reads mail settings
monitor.py - Email alerts → SMTP server: sends email
monitor.py