mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-27 03:14:45 +00:00
Bug fix: Check temp_upper_warning and temp_upper_critical was not working.
This commit is contained in:
parent
3abf7831eb
commit
dcfdf9b396
1 changed files with 7 additions and 4 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue