Problem with "NetApp via WebAPI"

Prior versions were functional e.g. version 2.0.0p18
Now when executing agent_netapp i get following error

CMK version:
2.1.0b5

OS version:
Ubuntu 20.04 LTS

Error message:

######## START QUERY ########
<?xml version="1.0" ?>
<netapp xmlns="http://www.netapp.com/filer/admin" version="1.8" nmsdk_language="Python" nmsdk_version="5.2">
	<system-get-version/>
</netapp>

<<<netapp_api_connection>>>
Agent Exception (contact developer): Unicode strings with encoding declaration are not supported. Please use bytes input or XML fragments without declaration.
Traceback (most recent call last):
  File "/opt/omd/versions/2.1.0b5.cee/share/check_mk/agents/special/./agent_netapp", line 12, in <module>
    sys.exit(main())
  File "/omd/sites/cn_central/lib/python3/cmk/special_agents/agent_netapp.py", line 1743, in main
    netapp_mode = fetch_netapp_mode(args, server)
  File "/omd/sites/cn_central/lib/python3/cmk/special_agents/agent_netapp.py", line 851, in fetch_netapp_mode
    version_info = query(args, server, "system-get-version", return_toplevel_node=True)
  File "/omd/sites/cn_central/lib/python3/cmk/special_agents/agent_netapp.py", line 675, in query
    response = server.get_response([what])
  File "/omd/sites/cn_central/lib/python3/cmk/special_agents/agent_netapp.py", line 306, in get_response
    netapp_response = NetAppResponse(response, self.debug)
  File "/omd/sites/cn_central/lib/python3/cmk/special_agents/agent_netapp.py", line 426, in __init__
    self.content = NetAppNode(ET.fromstring(self.raw_response_text))
  File "src/lxml/etree.pyx", line 3252, in lxml.etree.fromstring
  File "src/lxml/parser.pxi", line 1907, in lxml.etree._parseMemoryDocument
ValueError: Unicode strings with encoding declaration are not supported. Please use bytes input or XML fragments without declaration.

Output of “cmk --debug -vvn hostname”: (If it is a problem with checks or plugins)

Checkmk version 2.1.0b5
Try license usage history update.
Trying to acquire lock on /omd/sites/cn_central/var/check_mk/license_usage/next_run
Got lock on /omd/sites/cn_central/var/check_mk/license_usage/next_run
Trying to acquire lock on /omd/sites/cn_central/var/check_mk/license_usage/history.json
Got lock on /omd/sites/cn_central/var/check_mk/license_usage/history.json
Next run time has not been reached yet. Abort.
Releasing lock on /omd/sites/cn_central/var/check_mk/license_usage/history.json
Released lock on /omd/sites/cn_central/var/check_mk/license_usage/history.json
Releasing lock on /omd/sites/cn_central/var/check_mk/license_usage/next_run
Released lock on /omd/sites/cn_central/var/check_mk/license_usage/next_run

Hi,
please send this error to feedback@checkmk.com. Looks like a problem in 2.1 beta version.
Regards,
Christian

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.