Check_MK virt1 "Invalid line in agent section" after Upgrade

Hi,

after Upgrading from Check MK Managed 1.6.0p14 to 1.6.0p24 and Check_MK virt1 to 1.4.15.
We receive following error on Check_MK Discovery:

UNKN - Invalid line in agent section <<<local>>>. Reason: Received wrong format of local check output. Please read the documentation regarding the correct format: [![](https://monitoring.msupport.ch/MSupport/check_mk/themes/facelift/images/icon_link.png)](https://docs.checkmk.com/1.6.0/de/localchecks.html) Received output: "0 User_Memory mem_used=11399475200;11154323865;11774008524;0;12393693184

Detailed Log:

OMD[MSupport]:/$ cmk --debug -vI SRV-Check_MK-MSupport
Discovering services on: SRV-Check_MK-MSupport
SRV-Check_MK-MSupport:
+ FETCHING DATA
 [agent] Execute data source
 [piggyback] Execute data source
No piggyback files for 'SRV-Check_MK-MSupport'. Skip processing.
No piggyback files for 'localhost'. Skip processing.
+ EXECUTING DISCOVERY PLUGINS (54)
Invalid line in agent section <<<local>>>. Reason: Received wrong format of local check output. Please read the documentation regarding the correct format: https://docs.checkmk.com/1.6.0/de/localchecks.html  Received output: "0 User_Memory mem_used=11536789504;11154323865;11774008524;0;12393693184|mem_total=12393693184|mem_system=11536789504 User processes are using 11002 MB of 11819 MB (max. so far: 11178 MB, System uses 248 MB)"
Traceback (most recent call last):
  File "/omd/sites/MSupport/bin/cmk", line 94, in <module>
    exit_status = modes.call(mode_name, mode_args, opts, args)
  File "/omd/sites/MSupport/lib/python/cmk_base/modes/__init__.py", line 72, in call
    return mode.handler_function(*handler_args)
  File "/omd/sites/MSupport/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/MSupport/lib/python/cmk_base/discovery.py", line 133, in do_discovery
    only_new, on_error)
  File "/omd/sites/MSupport/lib/python/cmk_base/discovery.py", line 167, in _do_discovery_for
    on_error=on_error)
  File "/omd/sites/MSupport/lib/python/cmk_base/discovery.py", line 839, in _discover_services
    check_plugin_name, on_error):
  File "/omd/sites/MSupport/lib/python/cmk_base/discovery.py", line 940, in _execute_discovery
    discovered_items = _execute_discovery_function(discovery_function, section_content)
  File "/omd/sites/MSupport/lib/python/cmk_base/discovery.py", line 978, in _execute_discovery_function
    discovered_items = discovery_function(section_content)
  File "/omd/sites/MSupport/share/check_mk/checks/local", line 196, in inventory_local
    "Reason: %s Received output: \"%s\"" % (reason, output)))
cmk.utils.exceptions.MKGeneralException: Invalid line in agent section <<<local>>>. Reason: Received wrong format of local check output. Please read the documentation regarding the correct format: https://docs.checkmk.com/1.6.0/de/localchecks.html  Received output: "0 User_Memory mem_used=11536789504;11154323865;11774008524;0;12393693184|mem_total=12393693184|mem_system=11536789504 User processes are using 11002 MB of 11819 MB (max. so far: 11178 MB, System uses 248 MB)"

Agent Version of the Check_MK VM is OK - [agent] Version: 2.0.0p2, OS: linux, execution time 0.7 sec

Thx for Help
Stefan

Hi,

the new firmware comes with agent version 2.0.0p2 as you see. You need to change the agent on teh appliance. Please habe a look at Update agent to 2.0 agent (with option to re-enable 1.6 agent) (checkmk.com)
Cheers,
Christian

1 Like

thx for the quick fix, works perfect.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.