Module: check_mk
Branch: master
Commit: bf6a259fd2664e913a24528c0a11bd8d00d27289
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=bf6a259fd2664e…
Author: Götz Golla <gg(a)mathias-kettner.de>
Date: Tue Sep 3 14:35:37 2013 +0200
The Check_MK_inventory check can now be ignored based on hosts or
host tags with the ignored_services variable, like all other checks
---
modules/check_mk.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index 705c2fc..6d73f42 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -1959,7 +1959,8 @@ define service {
}
""" % (active_service_template, hostname, extra_service_conf_of(hostname,
"Check_MK")))
# Inventory checks - if user has configured them. Not for clusters.
- if inventory_check_interval and not is_cluster(hostname):
+ if inventory_check_interval and not is_cluster(hostname) \
+ and not service_ignored(hostname,None,'Check_MK inventory'):
outfile.write("""
define service {
use\t\t\t\t%s