From dcfdf9b396ce33e29a4d9a97f5bb3c577a060010 Mon Sep 17 00:00:00 2001 From: Jun Futagawa Date: Thu, 27 Jan 2011 16:49:35 +0100 Subject: [PATCH] Bug fix: Check temp_upper_warning and temp_upper_critical was not working. --- plugins/other/ipmitool_sensor_ | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/plugins/other/ipmitool_sensor_ b/plugins/other/ipmitool_sensor_ index c07c09f2..edb11d5b 100755 --- a/plugins/other/ipmitool_sensor_ +++ b/plugins/other/ipmitool_sensor_ @@ -60,6 +60,9 @@ # Narrow the voltage bracket by this. (default: 20) # # $Log$ +# Revision 1.5 2011/01/28 00:39:00 jfut +# Bug fix: Check temp_upper_warning and temp_upper_critical was not working. +# # Revision 1.4 2009/02/08 23:51:00 jfut # Support "ipmitool sdr". # Add Watts and Amp as voltage unit. @@ -310,15 +313,15 @@ sub temp_threshold { else { $lnc = 10; } } # unc: upper critical - if (exists $ENV{fan_upper_critical}) { - $unc = $ENV{fan_upper_critical}; + if (exists $ENV{temp_upper_critical}) { + $unc = $ENV{temp_upper_critical}; } elsif (! &is_valid_value($unc)) { if ($unc eq 'inf') { $unc = ''; } else { $unc = '65'; } } # ucr: upper warning - if (exists $ENV{upper_critical}) { - $ucr = $ENV{upper_critical}; + if (exists $ENV{temp_upper_warning}) { + $ucr = $ENV{temp_upper_warning}; } elsif (! &is_valid_value($ucr)) { if ($ucr eq 'inf') { $ucr = ''; } else { $ucr = '70'; }