Module: check_mk
Branch: master
Commit: 63081314b01860dd7f56f0c5c6f7bbcd25199633
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=63081314b01860…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Wed Feb 11 15:34:52 2015 +0100
temperature.include: Fixed device status handling for best case option
---
checks/temperature.include | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checks/temperature.include b/checks/temperature.include
index b80bc99..5fc8166 100644
--- a/checks/temperature.include
+++ b/checks/temperature.include
@@ -208,7 +208,7 @@ def check_temperature(reading, params, dev_unit = "c",
status = check_temp_levels(temp, warn, crit, warn_lower, crit_lower)
if dev_status != None:
if dlh == "best":
- status = min(status, dev_status)
+ status = minn(status, dev_status)
else:
status = max(status, dev_status)