Module: check_mk
Branch: master
Commit: 7a78cace86959f088d13e1a347a7fe61744601ee
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7a78cace86959f…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Apr 27 17:51:32 2018 +0200
Nagios: Add discovery service in same situation as with Microcore
Change-Id: I9fc618cc0d1fb0f35ab7c1bbdb49fda2b53386cb
---
cmk_base/core_nagios.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmk_base/core_nagios.py b/cmk_base/core_nagios.py
index ecaa1e2..62ebc25 100644
--- a/cmk_base/core_nagios.py
+++ b/cmk_base/core_nagios.py
@@ -531,7 +531,7 @@ define service {
# Inventory checks - if user has configured them.
if params["check_interval"] \
and not config.service_ignored(hostname, None, service_discovery_name) \
- and not "ping" in config.tags_of_host(hostname): # FIXME/TODO: Why not
user is_ping_host()?
+ and not config.is_ping_host(hostname):
outfile.write("""
define service {
use\t\t\t\t%s