mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
Bug fix: Check temp_upper_warning and temp_upper_critical was not working.
This commit is contained in:
parent
3abf7831eb
commit
dcfdf9b396
@ -60,6 +60,9 @@
|
|||||||
# Narrow the voltage bracket by this. (default: 20)
|
# Narrow the voltage bracket by this. (default: 20)
|
||||||
#
|
#
|
||||||
# $Log$
|
# $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
|
# Revision 1.4 2009/02/08 23:51:00 jfut
|
||||||
# Support "ipmitool sdr".
|
# Support "ipmitool sdr".
|
||||||
# Add Watts and Amp as voltage unit.
|
# Add Watts and Amp as voltage unit.
|
||||||
@ -310,15 +313,15 @@ sub temp_threshold {
|
|||||||
else { $lnc = 10; }
|
else { $lnc = 10; }
|
||||||
}
|
}
|
||||||
# unc: upper critical
|
# unc: upper critical
|
||||||
if (exists $ENV{fan_upper_critical}) {
|
if (exists $ENV{temp_upper_critical}) {
|
||||||
$unc = $ENV{fan_upper_critical};
|
$unc = $ENV{temp_upper_critical};
|
||||||
} elsif (! &is_valid_value($unc)) {
|
} elsif (! &is_valid_value($unc)) {
|
||||||
if ($unc eq 'inf') { $unc = ''; }
|
if ($unc eq 'inf') { $unc = ''; }
|
||||||
else { $unc = '65'; }
|
else { $unc = '65'; }
|
||||||
}
|
}
|
||||||
# ucr: upper warning
|
# ucr: upper warning
|
||||||
if (exists $ENV{upper_critical}) {
|
if (exists $ENV{temp_upper_warning}) {
|
||||||
$ucr = $ENV{upper_critical};
|
$ucr = $ENV{temp_upper_warning};
|
||||||
} elsif (! &is_valid_value($ucr)) {
|
} elsif (! &is_valid_value($ucr)) {
|
||||||
if ($ucr eq 'inf') { $ucr = ''; }
|
if ($ucr eq 'inf') { $ucr = ''; }
|
||||||
else { $ucr = '70'; }
|
else { $ucr = '70'; }
|
||||||
|
Loading…
Reference in New Issue
Block a user