If it helps I've got a newer better version that will work on devices on SAS buses (and behind SAS expanders). It doesn't use the archaic IDE ioctls, instead fires ATA commands embedded in SCSI at the storage device, relying on the SAT layer to decapsulate either in libata, the HBA or the SXP. Feel free to have a play with https://github.com/spjmurray/check_scsi_smart and once all the bugs are ironed out and things are at a state I'll submit it for inclusion in monitoring-plugins
-- Reply to this email on GitHub: https://github.com/monitoring-plugins/monitoring-plugins/issues/1104#issuecomment-166582099