Collection of CheckMK checks (see https://checkmk.com/). All checks and plugins are provided as is. Absolutely no warranty. Send any comments to thl-cmk[at]outlook[dot]com

Skip to content
Snippets Groups Projects
Commit ea535a15 authored by thl-cmk's avatar thl-cmk :flag_na:
Browse files

update project

parent ec22fb9c
No related branches found
No related tags found
No related merge requests found
No preview for this file type
......@@ -100,6 +100,7 @@ def option_to_state(c):
def _execute_traceroute(target, nodns, method, address_family, queries, max_ttl, port, source_addr, source_int):
cmd = ['traceroute']
shell = False
if nodns:
cmd.append('-n')
if method:
......@@ -123,8 +124,6 @@ def _execute_traceroute(target, nodns, method, address_family, queries, max_ttl,
if (source_int is not None) or (source_addr is not None):
cmd = ' '.join(cmd)
shell = True
else:
shell = False
p = subprocess.Popen(args=cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, encoding='utf8', shell=shell)
sto, ste = p.communicate()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment