Module: check_mk
Branch: master
Commit: e4c3c5f7a43b7f384987ee35bbbb49d518d874c7
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e4c3c5f7a43b7f…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Mon Jan 19 17:17:41 2015 +0100
temperature.include: Fixed exception
---
checks/temperature.include | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/checks/temperature.include b/checks/temperature.include
index ad59dae..b281112 100644
--- a/checks/temperature.include
+++ b/checks/temperature.include
@@ -156,7 +156,7 @@ def check_temperature(reading, params, dev_unit = "c",
elif dlh == "dev":
warn, crit, warn_lower, crit_lower = dev_warn, dev_crit, dev_warn_lower,
dev_crit_lower
- # The following for cases are all identical, if either *only* device levels or
*only*
+ # The following four cases are all identical, if either *only* device levels or
*only*
# user levels exist (or no levels at all).
# Use least critical of your and device's levels. If just one of both is
defined,
@@ -191,7 +191,7 @@ def check_temperature(reading, params, dev_unit = "c",
if dev_levels_lower:
warn_lower, crit_lower = dev_levels_lower
else:
- warn, crit = usr_warn_lower, usr_crit_lower
+ warn_lower, crit_lower = usr_warn_lower, usr_crit_lower
# Now finally compute status. Hooray!
status = check_temp_levels(temp, warn, crit, warn_lower, crit_lower)