Module: check_mk
Branch: master
Commit: 1ba425807b6d379f3db64b74306d22502e0a2177
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1ba425807b6d37…
Author: Sebastian Herbord <sh(a)mathias-kettner.de>
Date: Thu Jan 28 14:10:20 2016 +0100
pandacom_sys_temp, pandacom_temp.include: fixed checks crashing
---
checks/pandacom_sys_temp | 2 +-
checks/pandacom_temp.include | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/checks/pandacom_sys_temp b/checks/pandacom_sys_temp
index 7bf3a47..072e81f 100644
--- a/checks/pandacom_sys_temp
+++ b/checks/pandacom_sys_temp
@@ -33,7 +33,7 @@ def inventory_pandacom_sys_temp(info):
def check_pandacom_sys_temp(item, params, info):
- return check_temperature(int(info[0][0]), params)
+ return check_temperature(int(info[0][0]), params, "pandacom_sys_%s" %
item)
check_info['pandacom_sys_temp'] = {
diff --git a/checks/pandacom_temp.include b/checks/pandacom_temp.include
index da55dd3..75e6959 100644
--- a/checks/pandacom_temp.include
+++ b/checks/pandacom_temp.include
@@ -38,5 +38,5 @@ def inventory_pandacom_module_temp(info):
def check_pandacom_module_temp(item, params, info):
for slot, temp_str, warn_str, crit_str in info:
if slot == item:
- return check_temperature(int(temp_str), params,
+ return check_temperature(int(temp_str), params, "pandacom_%s" %
item,
dev_levels = (int(warn_str), int(crit_str)))