Handle different temperature measure as seen on SSDs http://sourceforge.net/p/webadmin/bugs/4404/

This commit is contained in:
Jamie Cameron
2014-05-07 20:13:26 -07:00
parent 09156bc768
commit 4d83f54358

View File

@@ -386,7 +386,8 @@ if (!$config{'collect_notemp'} &&
foreach my $d (&smart_status::list_smart_disks_partitions()) {
my $st = &smart_status::get_drive_status($d->{'device'}, $d);
foreach my $a (@{$st->{'attribs'}}) {
if ($a->[0] =~ /^Temperature\s+Celsius$/i &&
if (($a->[0] =~ /^Temperature\s+Celsius$/i ||
$a->[0] =~ /^Airflow\s+Temperature\s+Cel/i) &&
$a->[1] > 0) {
push(@rv, { 'device' => $d->{'device'},
'temp' => int($a->[1]),