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 c6459b00 authored by thl-cmk's avatar thl-cmk :flag_na:
Browse files

update project

parent b0cf151c
No related branches found
No related tags found
No related merge requests found
No preview for this file type
...@@ -123,7 +123,8 @@ def _execute_traceroute(target, nodns, method, address_family, queries, max_ttl, ...@@ -123,7 +123,8 @@ def _execute_traceroute(target, nodns, method, address_family, queries, max_ttl,
if (source_int is not None) or (source_addr is not None): if (source_int is not None) or (source_addr is not None):
cmd = ' '.join(cmd) cmd = ' '.join(cmd)
shell = True # uncomment this line to make source interface and source address option work
# shell = True
p = subprocess.Popen(args=cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, encoding='utf8', shell=shell) p = subprocess.Popen(args=cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, encoding='utf8', shell=shell)
sto, ste = p.communicate() sto, ste = p.communicate()
......
...@@ -13,8 +13,10 @@ ...@@ -13,8 +13,10 @@
'\n' '\n'
'Source address and source interface uses the "shell=True" ' 'Source address and source interface uses the "shell=True" '
'option in in\n' 'option in in\n'
'the "subprocess.Popen" command. This is highly insecure, so ' 'the "subprocess.Popen" command. This is insecure, so be '
'be careful.\n' 'careful.\n'
'To actvate this options you need to uncomment the line "# '
'shell=True" in ~/lib/nagios/plugins/check_traceroute.\n'
'\n' '\n'
'Note: the original option TCP path trace also needs root ' 'Note: the original option TCP path trace also needs root '
'permissions.\n' 'permissions.\n'
...@@ -31,8 +33,8 @@ ...@@ -31,8 +33,8 @@
'plugins/metrics/traceroute.py']}, 'plugins/metrics/traceroute.py']},
'name': 'active_check_traceroute', 'name': 'active_check_traceroute',
'num_files': 4, 'num_files': 4,
'title': 'Active Check Traceroute', 'title': 'Check Traceroute (extended)',
'version': '20212104.v.0.0.1a', 'version': '20212107.v.0.0.1b',
'version.min_required': '2.0.0', 'version.min_required': '2.0.0',
'version.packaged': '2021.09.20', 'version.packaged': '2021.09.20',
'version.usable_until': None} 'version.usable_until': None}
\ No newline at end of file
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