|
|
@ -233,7 +233,7 @@ if (-x $smartctl){ |
|
|
|
if ($l =~ /Temperature_Celsius/){ |
|
|
|
if ($l =~ /Temperature_Celsius/){ |
|
|
|
my $sensor = { |
|
|
|
my $sensor = { |
|
|
|
description => "$block temperature", |
|
|
|
description => "$block temperature", |
|
|
|
threshold_low => $def_temp_thres_high-$temp_hyst, |
|
|
|
threshold_low => $def_temp_thres_high-$temp_hd_hyst, |
|
|
|
threshold_high => $def_temp_thres_high, |
|
|
|
threshold_high => $def_temp_thres_high, |
|
|
|
type => 'temp', |
|
|
|
type => 'temp', |
|
|
|
unit => '°C', |
|
|
|
unit => '°C', |
|
|
@ -257,7 +257,7 @@ if (-x $smartctl){ |
|
|
|
description => "Temperature for disk No $i on sda", |
|
|
|
description => "Temperature for disk No $i on sda", |
|
|
|
type => 'temp', |
|
|
|
type => 'temp', |
|
|
|
threshold_high => $1-$temp_hd_margin, |
|
|
|
threshold_high => $1-$temp_hd_margin, |
|
|
|
threshold_low => $1-$temp_hd_margin-$temp_hyst, |
|
|
|
threshold_low => $1-$temp_hd_margin-$temp_hd_hyst, |
|
|
|
unit => '°C', |
|
|
|
unit => '°C', |
|
|
|
cmd => "$smartctl -A -d megaraid,$i /dev/sda | grep 'Current Drive Temperature' | awk '{print \$4}'" |
|
|
|
cmd => "$smartctl -A -d megaraid,$i /dev/sda | grep 'Current Drive Temperature' | awk '{print \$4}'" |
|
|
|
}; |
|
|
|
}; |
|
|
|