Module: check_mk
Branch: master
Commit: e7bcf289df37e4be2e1369136d41f5341344816f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e7bcf289df37e4…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Jan 17 11:29:55 2014 +0100
FIX: Ignore missing check types when creating Nagios config
---
modules/check_mk.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index f740f61..defccfe 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -2003,6 +2003,9 @@ define servicedependency {
have_at_least_one_service = False
used_descriptions = {}
for ((checkname, item), (params, description, deps)) in host_checks:
+ if checkname not in check_info:
+ continue # simply ignore missing checks
+
# Make sure, the service description is unique on this host
if description in used_descriptions:
cn, it = used_descriptions[description]