Module: check_mk
Branch: master
Commit: 74c2d8ffeb9e37af19a4ba42f80abbb9c584886e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=74c2d8ffeb9e37…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Jan 15 16:40:35 2015 +0100
Code cleanup
---
modules/discovery.py | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/modules/discovery.py b/modules/discovery.py
index 04c5efe..26b6261 100644
--- a/modules/discovery.py
+++ b/modules/discovery.py
@@ -578,8 +578,6 @@ def get_check_preview(hostname, use_caches, do_snmp_scan):
else:
ipaddress = lookup_ipaddress(hostname)
- leave_no_tcp = True # FIXME TODO
-
table = []
for (check_type, item), (check_source, paramstring) in services.items():
params = None
@@ -604,9 +602,7 @@ def get_check_preview(hostname, use_caches, do_snmp_scan):
global opt_use_cachefile
old_opt_use_cachefile = opt_use_cachefile
opt_use_cachefile = True
- if not leave_no_tcp:
- opt_no_tcp = True
- opt_dont_submit = True
+ opt_dont_submit = True # hack for get_realhost_info, avoid skipping because
of check interval
if check_type not in check_info:
continue # Skip not existing check silently