diff --git a/active_check_traceroute.mkp b/active_check_traceroute.mkp index ee1d73733ed3ac061ec1c6a1b9d67919d546b99a..b529d23158a1450ab85238ee9c0deb7fc99c6553 100644 Binary files a/active_check_traceroute.mkp and b/active_check_traceroute.mkp differ diff --git a/lib/nagios/plugins/check_traceroute b/lib/nagios/plugins/check_traceroute index 3771dc5bd610a682df4a21d514efd8a8017da449..9fa0447b211070433124c2b05b87f6ae682221ed 100755 --- a/lib/nagios/plugins/check_traceroute +++ b/lib/nagios/plugins/check_traceroute @@ -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()