I don’t think that the problem is at the local agent.
When I test the agent locally with “check_mk_agent.exe test”
this shows up:
[[[Application]]]
C Mar 30 13:43:59 0.1002 Application_Hang The program notepad.exe version 21.2.3.11916 stopped interacting with Windows and was closed.
Running cmk -d [Servername] on server console shows this:
<<>>
[[[Application]]]
C Mar 30 13:43:59 0.1002 Application_Hang The program notepad.exe version 21.2.3 .11916 stopped interacting with Windows and was closed.
OMD[MYSITE]:~$ <<>>
bash: syntax error near unexpected token `>’
OMD[MYSITE]:~$ [[[Application]]]
bash: [[[Application]]]: command not found
But on the server I get a crashed check:
MKGeneralException (Invalid regular expression ‘\(redirected’: missing ), unterminated subpattern at position 2)
File “/omd/sites/VS/lib/python3/cmk/base/checking.py”, line 577, in get_aggregated_result
result = _aggregate_results(check_function(**kwargs))
File “/omd/sites/VS/lib/python3/cmk/base/checking.py”, line 808, in _aggregate_results
perfdata, results = _consume_and_dispatch_result_types(subresults)
File “/omd/sites/VS/lib/python3/cmk/base/checking.py”, line 852, in _consume_and_dispatch_result_types
for subr in subresults:
File “/omd/sites/VS/lib/python3/cmk/base/api/agent_based/register/check_plugins.py”, line 89, in filtered_generator
for element in generator(*args, **kwargs):
File “/omd/sites/VS/lib/python3/cmk/base/plugins/agent_based/logwatch.py”, line 150, in check_logwatch_node
yield from check_logwatch(item, {None: section})
File “/omd/sites/VS/lib/python3/cmk/base/plugins/agent_based/logwatch.py”, line 173, in check_logwatch
yield from check_logwatch_generic(item, _compile_params(), loglines, found)
File “/omd/sites/VS/lib/python3/cmk/base/plugins/agent_based/logwatch.py”, line 483, in check_logwatch_generic
current_block.add_line(line, False)
File “/omd/sites/VS/lib/python3/cmk/base/plugins/agent_based/logwatch.py”, line 346, in add_line
level = logwatch.reclassify(self.counts, self.patterns, text, level)
File “/omd/sites/VS/lib/python3/cmk/base/plugins/agent_based/utils/logwatch.py”, line 101, in reclassify
reg = regex(escape_win_backslash(pattern), re.UNICODE)
File “/omd/sites/VS/lib/python3/cmk/utils/regex.py”, line 31, in regex
raise MKGeneralException((“Invalid regular expression ‘%s’: %s”) % (pattern, e))