Module: check_mk
Branch: master
Commit: 954c07d9ecd1ff80ccbbf659e894ded10bf40614
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=954c07d9ecd1ff…
Author: Sebastian Herbord <sh(a)mathias-kettner.de>
Date: Tue Sep 15 10:33:10 2015 +0200
fixed wato service preview caused an error on checks with counters
---
modules/discovery.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/discovery.py b/modules/discovery.py
index 45b84bc..8f7a1ba 100644
--- a/modules/discovery.py
+++ b/modules/discovery.py
@@ -989,6 +989,10 @@ def get_check_preview(hostname, use_caches, do_snmp_scan, on_error):
opt_use_cachefile = old_opt_use_cachefile
+ global g_check_type, g_checked_item
+ g_check_type = check_type
+ g_checked_item = item
+
if exitcode == None:
check_function = check_info[check_type]["check_function"]
if check_source != 'manual':