Fix using HD hysteresis param

tags/zabbix-agent-addons-0.2.20-1 0.2.0_el5
Daniel Berteaud 10 years ago
parent b571fa5509
commit c36585d92d
  1. 4
      zabbix_scripts/util_generate_sensors_ini

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

Loading…
Cancel
Save