node-exporter-textfile-collector-scripts
node-exporter-textfile-collector-scripts copied to clipboard
Small fixes for devices which don't support SMART
- 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_infoto indicate if the device supports smart. if it doesn't, don't bother pulling stats for it