My apologies….
Not using hddtemp script. Using the temperature script (that uses hddtemp)..
sn = serial number. Using ZFS on Linux by-vdev definition to map /dev/hd? -> /dev/disk/by-vdev/(sn - serial number)
My temperature script below as on monitored host.
#!/bin/bash
echo "<<<temperature>>>"
echo “(sn 1):" `hddtemp /dev/disk/by-vdev/(sn 1) -n`
echo “(sn 2):" `hddtemp /dev/disk/by-vdev/(sn 2) -n`
echo “(sn 3):" `hddtemp /dev/disk/by-vdev/(sn 3) -n`
echo “(sn 4):" `hddtemp /dev/disk/by-vdev/(sn 4) -n`
echo “(sn 5):" `hddtemp /dev/disk/by-vdev/(sn 5) -n`