node-exporter-textfile-collector-scripts icon indicating copy to clipboard operation
node-exporter-textfile-collector-scripts copied to clipboard

Small fixes for devices which don't support SMART

Open higels opened this issue 4 months ago • 0 comments

  • initialise smart_healthy to -1, since an int defaults to 0 if empty, which broke some logic further down. as a result we no longer emit healthy=0 for devices with no SMART support.
  • add a return to parse_smartctl_info to indicate if the device supports smart. if it doesn't, don't bother pulling stats for it

higels avatar Sep 03 '25 19:09 higels