7 Commits

Author SHA1 Message Date
fe832c42f3 Fix critical reliability and security issues in hwmonDaemon
Critical fixes implemented:
- Add 10MB storage limit with automatic cleanup of old history files
- Add file locking (fcntl) to prevent race conditions in history writes
- Disable SMART monitoring for unreliable Ridata drives
- Fix bare except clause in _read_ecc_count() to properly catch errors
- Add timeouts to all network and subprocess calls (10s for API, 30s for subprocess)
- Fix unchecked regex in ticket creation to prevent AttributeError
- Add JSON decode error handling for ticket API responses

Service configuration improvements:
- hwmon.timer: Reduce jitter from 300s to 60s, add Persistent=true
- hwmon.service: Add Restart=on-failure, TimeoutStartSec=300, logging to journal

These changes improve reliability, prevent hung processes, eliminate race
conditions, and add proper error handling throughout the daemon.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-06 16:55:48 -05:00
9dc3b60a73 Update hwmon.service 2025-11-29 16:04:43 -05:00
0239d64ec3 Update hwmon.service 2025-11-25 20:29:52 -05:00
790c40ec0d Created README 2024-12-05 21:26:01 -05:00
34075225bb updated port for git server and disabled temp checks 2024-12-04 21:43:10 -05:00
0b26b67019 Adjusted network logic, made map of both subnet ip 2024-12-04 21:14:47 -05:00
8e5cda287d Creation of hwmonDaemon and service files 2024-12-04 20:46:35 -05:00