How arxknight/diskwarden works
DiskWarden is a Flask-based disk health monitor. Users view the dashboard or configure alert settings; the disk-health endpoint runs HDSentinel, parses its output, returns disk metrics, and sends threshold-triggered Discord and email alerts. The README documents dashboard metrics and notification options; the sampled app.py shows their runtime flow. Templates and static assets are present in the tree but were not sampled, so their interactions are not asserted.
Main entry points: app.py Health Endpoint · settings.json JSON Settings · index.html Dashboard View · settings.html Settings View
Components 14
Web Interface
- Flask Routes
app.py - Dashboard View
templates/index.html - Settings View
templates/settings.html - JSON Settings
settings.json
Disk Monitoring
- Health Endpoint
app.py - HDSentinel
- Output Parser
app.py - Disk Metrics
app.py
Notifications
- Threshold Check
app.py - Discord Webhook
- SMTP Email
- Email Sender
app.py - Discord Sender
app.py
Other components
- Operator
Connections 15
- Operator → Flask Routes: uses
README.md - Flask Routes → Dashboard View: renders
app.py - Flask Routes → Settings View: renders
app.py - Flask Routes → JSON Settings: loads and updates
app.py - Operator → Health Endpoint: requests metrics
README.md - Health Endpoint → HDSentinel: runs
app.py - Health Endpoint → Output Parser: parses output
app.py - Output Parser → Disk Metrics: extracts metrics
app.py - Health Endpoint → JSON Settings: reads settings
app.py - Health Endpoint → Threshold Check: checks health
app.py - Threshold Check → Discord Sender: dispatches alert
app.py - Threshold Check → Email Sender: dispatches alert
app.py - Discord Sender → Discord Webhook: posts webhook
app.py - Email Sender → SMTP Email: sends email
app.py - Operator → Flask Routes: configures alerts
README.md