Commit graph

4 commits

Author SHA1 Message Date
Tim Connors
8ea6df0eb3 fix some parsing of smart-intercept-spindown broken by new version
New smart-intercept-spindown didn't accept all formats of input coming
to it - the status line we were trying to detect broken status of
doesn't appear on most devices
2025-09-20 06:23:00 +10:00
Tim Connors
f8e4bf0dc8 smart-intercept-spindown was discarding SAS data not parsed
Data we don't use was being dropped on the floor rather than passed
through, potentially stopping it being a drop-in-replacement for
vanilla smartctl
2025-09-20 01:41:56 +10:00
Tim Connors
00413326be hddtemp, smart-intercept-spindown: handle idle, add --numeric, --no-device
Filter out temperature=255 at this stage rather than in clients who
use us

Allow hddtemp to output a simpler format if --no-device --numeric is
requested

Ignore idle disks as well in order not to bring them out of idle mode
and thus reset timer
2025-09-13 04:20:15 +10:00
Tim Connors
7c831f1f52 Make use of smart-intercept-spindown and smartctlnvme
Migrate smart-intercept-spindown and smartctlnvme into this repo from
my ansible-initial-server-setup playbooks, so they can be published in
a self-contained repo.  Ansible then distributes these files anyway
via including this repo.

This enables us to get rid of the spindown test code we duplicated
here, plus ensure we're actually distributing smartctlnvme
2025-09-13 04:20:15 +10:00