Module: check_mk
Branch: master
Commit: 25357ace52de1593a0e39aaa718ab22bed72a5eb
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=25357ace52de15…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Aug 20 11:30:22 2015 +0200
Fix exception in parse function of diskstat (since yesterday)
---
modules/check_mk_base.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/check_mk_base.py b/modules/check_mk_base.py
index f6a633a..4b002db 100644
--- a/modules/check_mk_base.py
+++ b/modules/check_mk_base.py
@@ -285,6 +285,10 @@ def apply_parse_function(info, section_name):
parse_function = check_info[section_name]["parse_function"]
if parse_function:
try:
+ # Prepare unique context for get_rate() and get_average()
+ global g_check_type, g_checked_item
+ g_check_type = section_name
+ g_checked_item = None
return parse_function(info)
except Exception, e:
if opt_debug: