<p>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 <a href="https://github.com/spjmurray/check_scsi_smart">https://github.com/spjmurray/check_scsi_smart</a> and once all the bugs are ironed out and things are at a state I'll submit it for inclusion in monitoring-plugins</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br><a href="https://github.com/monitoring-plugins/monitoring-plugins/issues/1104#issuecomment-166582099">Reply to this email on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFQl2S1QebGJ6bhwDmSJSdJ9K32w-GKYks5pSSXKgaJpZM4BB6Xe.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/monitoring-plugins/monitoring-plugins/issues/1104#issuecomment-166582099"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>