Module: check_mk
Branch: master
Commit: f3a183b5f1a87a4df4c8fd1b9b4592ff8890a5d0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f3a183b5f1a87a…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Tue Jan 20 13:23:34 2015 +0100
kentix_temp: Minor code cleanup
---
checks/kentix_temp | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/checks/kentix_temp b/checks/kentix_temp
index d26f936..e4f02ea 100644
--- a/checks/kentix_temp
+++ b/checks/kentix_temp
@@ -30,11 +30,10 @@ def inventory_kentix_temp(info):
def check_kentix_temp(item, params, info):
value, lower_warn, upper_warn, alarm, text = info[0]
- upper_warn = float(upper_warn)
- lower_warn = float(lower_warn)
temp = float(value)/10
- return check_temperature(temp, params, dev_levels = (upper_warn, upper_warn),
dev_levels_lower = (lower_warn, lower_warn))
+ return check_temperature(temp, params, dev_levels = (float(upper_warn),
float(upper_warn)),
+ dev_levels_lower = (float(lower_warn),
float(lower_warn)))
check_info["kentix_temp"] = {
'check_function' : check_kentix_temp,