I have installed these packages in order to test checkmk:
check-mk-raw-1.6.0p9-el8-38.x86_64
check-mk-agent-1.6.0p9-1.noarch
When I monitor the same machine where the checkmk is installed I get an error from the “Check_MK Discovery”.
It gives “UNKN - Invalid line in agent section <<>>: u’a0:31’”.
I found I can use the cmk command to debug this.
OMD[montest]:~$ cmk --debug -vI srv-montest
Discovering services on: srv-montest
srv-montest:
+ FETCHING DATA
[agent] Execute data source
[piggyback] Execute data source
No piggyback files for 'srv-montest'. Skip processing.
No piggyback files for '10.x.x.x'. Skip processing.
+ EXECUTING DISCOVERY PLUGINS (42)
systemd_units does not support discovery. Skipping it.
ps_lnx does not support discovery. Skipping it.
Invalid line in agent section <<<local>>>: u'a0:31'
Traceback (most recent call last):
File "/omd/sites/montest/bin/cmk", line 94, in <module>
exit_status = modes.call(mode_name, mode_args, opts, args)
File "/omd/sites/montest/lib/python/cmk_base/modes/__init__.py", line 72, in call
return mode.handler_function(*handler_args)
File "/omd/sites/montest/lib/python/cmk_base/modes/check_mk.py", line 1498, in mode_discover
discovery.do_discovery(hostnames, options.get("checks"), options["discover"] == 1)
File "/omd/sites/montest/lib/python/cmk_base/discovery.py", line 133, in do_discovery
only_new, on_error)
File "/omd/sites/montest/lib/python/cmk_base/discovery.py", line 167, in _do_discovery_for
on_error=on_error)
File "/omd/sites/montest/lib/python/cmk_base/discovery.py", line 834, in _discover_services
check_plugin_name, on_error):
File "/omd/sites/montest/lib/python/cmk_base/discovery.py", line 935, in _execute_discovery
discovered_items = _execute_discovery_function(discovery_function, section_content)
File "/omd/sites/montest/lib/python/cmk_base/discovery.py", line 973, in _execute_discovery_function
discovered_items = discovery_function(section_content)
File "/omd/sites/montest/share/check_mk/checks/local", line 182, in inventory_local
raise MKGeneralException("Invalid line in agent section <<<local>>>: %r" % (output,))
cmk.utils.exceptions.MKGeneralException: Invalid line in agent section <<<local>>>: u'a0:31'
When I monitor another machine where I install the same agent I don’t get this error. Seems it only happens when I monitor the machine where the checkmk is running on.