Révision dcfdf9b3
Bug fix: Check temp_upper_warning and temp_upper_critical was not working.
| plugins/other/ipmitool_sensor_ | ||
|---|---|---|
| 60 | 60 |
# Narrow the voltage bracket by this. (default: 20) |
| 61 | 61 |
# |
| 62 | 62 |
# $Log$ |
| 63 |
# Revision 1.5 2011/01/28 00:39:00 jfut |
|
| 64 |
# Bug fix: Check temp_upper_warning and temp_upper_critical was not working. |
|
| 65 |
# |
|
| 63 | 66 |
# Revision 1.4 2009/02/08 23:51:00 jfut |
| 64 | 67 |
# Support "ipmitool sdr". |
| 65 | 68 |
# Add Watts and Amp as voltage unit. |
| ... | ... | |
| 310 | 313 |
else { $lnc = 10; }
|
| 311 | 314 |
} |
| 312 | 315 |
# unc: upper critical |
| 313 |
if (exists $ENV{fan_upper_critical}) {
|
|
| 314 |
$unc = $ENV{fan_upper_critical};
|
|
| 316 |
if (exists $ENV{temp_upper_critical}) {
|
|
| 317 |
$unc = $ENV{temp_upper_critical};
|
|
| 315 | 318 |
} elsif (! &is_valid_value($unc)) {
|
| 316 | 319 |
if ($unc eq 'inf') { $unc = ''; }
|
| 317 | 320 |
else { $unc = '65'; }
|
| 318 | 321 |
} |
| 319 | 322 |
# ucr: upper warning |
| 320 |
if (exists $ENV{upper_critical}) {
|
|
| 321 |
$ucr = $ENV{upper_critical};
|
|
| 323 |
if (exists $ENV{temp_upper_warning}) {
|
|
| 324 |
$ucr = $ENV{temp_upper_warning};
|
|
| 322 | 325 |
} elsif (! &is_valid_value($ucr)) {
|
| 323 | 326 |
if ($ucr eq 'inf') { $ucr = ''; }
|
| 324 | 327 |
else { $ucr = '70'; }
|
Formats disponibles : Unified diff