Module: check_mk
Branch: master
Commit: acea9a70950bbfbf991483b10b639b8166797509
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=acea9a70950bbf…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Tue Aug 2 10:42:42 2016 +0200
fixed usage of parse function in ipmi check
---
checks/ipmi | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/checks/ipmi b/checks/ipmi
index 5b49124..4492b2e 100644
--- a/checks/ipmi
+++ b/checks/ipmi
@@ -162,7 +162,8 @@ def parse_ipmi(info):
return parsed
-def inventory_ipmi(parsed):
+def inventory_ipmi(info):
+ parsed = parse_ipmi(info)
summarize = True
rules = host_extra_conf(g_hostname, inventory_ipmi_rules)
if rules:
@@ -179,7 +180,8 @@ def inventory_ipmi(parsed):
yield "Summary", None
-def check_ipmi(item, params, parsed):
+def check_ipmi(item, params, info):
+ parsed = parse_ipmi(info)
if item == "Summary":
return check_ipmi_summarized(parsed, params)
else:
@@ -296,7 +298,6 @@ check_config_variables.append("ipmi_ignored_sensors")
check_info["ipmi"] = {
- 'parse_function' : parse_ipmi,
'inventory_function' : inventory_ipmi,
'check_function' : check_ipmi,
'service_description' : 'IPMI Sensor %s',