diff --git a/open-nti/open-nti.py b/open-nti/open-nti.py index c7cfed4..b327570 100644 --- a/open-nti/open-nti.py +++ b/open-nti/open-nti.py @@ -362,7 +362,7 @@ def parse_result(host,target_command,result,datapoints,kpi_tags): parser_found = False for junos_parser in junos_parsers: regex_command = junos_parser["parser"]["regex-command"] - if re.search(regex_command, target_command, re.IGNORECASE): + if re.search(regex_command + "$", target_command, re.IGNORECASE): parser_found = True matches = junos_parser["parser"]["matches"] timestamp = str(int(datetime.today().strftime('%s')))