http://blogs.dootdoot.com/mike

As a follow-up to yesterdays success in getting Napp-It to recognize S.M.A.R.T. information for SAS drives, I was very happy just having the smart information display. Unfortunately, I didn’t immediately noticed that entire sets of like drive types were reporting the same temperature, which all looked really high, in the 65 C – 70 C range.

Further investigation showed that the script was actually picking up the drive’s internal trip temperature instead of the  current temperature. See print out below:

SMART Health Status: OK

Current Drive Temperature:     23 C
Drive Trip Temperature:        68 C
Elements in grown defect list: 0

After discovering this, I made an additional adjustment in the get-disk-smart.pl script on approximately Line 234 (after my previous modifications) or what would have been Line 232 prior to modifications:

           #temp
           if ($s=~/Temperature/i) {

              if ($s=~/Max Temperature/i)   { next; }              # no min/max
              if ($s=~/Temperature Limit/i) { next; }              # no limit count
              if ($s=~/Trip Temperature/i)  { next; }              # no Drive Trip Temperature

                $s=~s/.*  +//;
                $s=~s/ .*//;                                       # only temp not temp + min/max

                $k="smart_temp";
                if ($s=~/\d$/) { $s.=" �C" }

                $sv{$k}=$s;
                next;
           }

Once I added this additional check to “skip” the Drive Trip Temperature, the page now displays the current temperature correctly for all of my SAS drives.

Comments

Leave a Reply