[checkmk-commits] Check_MK Git: check_mk: temperature.include: Fixed device status handling for best case option

Konstantin Büttner kb at mathias-kettner.de
Wed Feb 11 15:35:01 CET 2015


Module: check_mk
Branch: master
Commit: 63081314b01860dd7f56f0c5c6f7bbcd25199633
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=63081314b01860dd7f56f0c5c6f7bbcd25199633

Author: Konstantin Büttner <kb at 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)
 



More information about the checkmk-commits mailing list