From 4d83f54358e1160c19a1bf851cb0bdc01a49f848 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Wed, 7 May 2014 20:13:26 -0700 Subject: [PATCH] Handle different temperature measure as seen on SSDs http://sourceforge.net/p/webadmin/bugs/4404/ --- system-status/system-status-lib.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/system-status/system-status-lib.pl b/system-status/system-status-lib.pl index 65e3ddbd4..17351b01a 100755 --- a/system-status/system-status-lib.pl +++ b/system-status/system-status-lib.pl @@ -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]),