Module: check_mk
Branch: master
Commit: 0da069f0ea5a7e64579ad5d3d1343b87d026081d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0da069f0ea5a7e…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Aug 26 14:02:13 2016 +0200
Fixed check crash reporting when using Nagios core
---
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 2a900f6..8beb09a 100644
--- a/modules/check_mk_base.py
+++ b/modules/check_mk_base.py
@@ -1584,6 +1584,10 @@ def prepare_crash_dump_directory(crash_dir):
def is_manual_check(hostname, check_type, item):
+ # In case of nagios we don't have this information available (in precompiled
mode)
+ if not "get_check_table" in globals():
+ return None
+
manual_checks = get_check_table(hostname, remove_duplicates=True,
world=opt_keepalive and "active" or
"config",
skip_autochecks=True)