How maheshbabu532/drive_health_framework works
This is a remote drive-health validation framework. Its principal workflow loads drive settings, connects to a Linux host over SSH, discovers or selects drives, gathers SMART/NVMe and kernel-error data, evaluates thresholds, and presents/logs a report. The graph also shows the command/SSH support layer and documented logging and JSON-report capabilities. Some stages are documented but their implementation was not sampled; those links rely on the README rather than implying unsampled call details.
Main entry points: drive_health_service.py Health-check service · main.py CLI entry point · base_service.py Service plumbing · ssh_client.py SSH client
Components 20
Validation workflow
- CLI entry point
main.py - Health-check service
services/drive_health_service.py - Drive discovery
services/drive_health_service.py - SMART checks
services/drive_health_service.py - NVMe checks
services/drive_health_service.py - Kernel error scan
services/drive_health_service.py - Threshold evaluation
services/drive_health_service.py
Remote access
- Service plumbing
services/base_service.py - Command executor
utils/command_executor.py - SSH client
utils/ssh_client.py
Configuration and support
- Drive configuration
config/drives.json - JSON reader
utils/json_reader.py - SSH settings
utils/settings.py - Device validation
utils/devices.py - Command templates
config/commands.json
Diagnostics and reports
- Redacting logger
utils/logger.py - Log files
- Health report
Other components
- Operator
- Linux host
Connections 24
- Operator → CLI entry point: runs
README.md - CLI entry point → Drive configuration: loads
main.py - CLI entry point → JSON reader: reads config
main.py - CLI entry point → Health-check service: starts checks
README.md - CLI entry point → Health report: generates
README.md - Health-check service → Drive discovery: discovers drives
README.md - Health-check service → SMART checks: checks SMART
services/drive_health_service.py - Health-check service → NVMe checks: checks NVMe
services/drive_health_service.py - Health-check service → Kernel error scan: scans dmesg
README.md - Health-check service → Threshold evaluation: evaluates health
README.md - Health-check service → Drive configuration: uses thresholds
README.md - Health-check service → Service plumbing: inherits plumbing
services/drive_health_service.py - Service plumbing → Command executor: creates executor
services/base_service.py - Service plumbing → Command templates: loads templates
services/base_service.py - Service plumbing → SSH client: accepts session
services/base_service.py - Health-check service → Command executor: runs commands
services/drive_health_service.py - Health-check service → Device validation: validates device
services/drive_health_service.py - Command executor → SSH client: executes remotely
utils/command_executor.py - SSH client → SSH settings: loads settings
utils/ssh_client.py - SSH client → Linux host: connects and commands
README.md - Health-check service → Redacting logger: logs diagnostics
README.md - CLI entry point → Redacting logger: configures logging
main.py - Redacting logger → Log files: writes rotating logs
utils/logger.py - CLI entry point → Health report: renders results
README.md