Fix SAS SMART parsing for pending defects and alt power-on format
- pending_defects: was matching word "Pending" instead of the number
  in "Pending defect count:0 Pending Defects" — use sed to extract
  digits between colon and space
- power_on_hours: some SAS drives report "number of hours powered up"
  instead of "Accumulated power on time" — try both formats

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 parent 141fe24 commit ff4f5fcf5e53b63e95c6f75fb677db0aac29b797
@Dixiao-L Dixiao-L authored on 7 Apr
Showing 1 changed file
View
modules/monitoring.nix