Hello,
OMD[***]:~$ /omd/sites/***/share/check_mk/agents/special/agent_netapp '***' 'monitoring' '***' '--no_counters'
<<<netapp_api_connection>>>
Agent Exception (contact developer): Unicode strings with encoding declaration are not supported. Please use bytes input or XML fragments without declaration.
Now with debug:
OMD[***]:~$ /omd/sites/***/share/check_mk/agents/special/agent_netapp '172.20.1.7' 'monitoring' '*** '--no_counters' --debug
Running in optimized mode
######## 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>
######## GOT RESPONSE #######
<?xml version="1.0" ?>
<results xmlns="http://www.netapp.com/filer/admin" status="passed">
<build-timestamp>1652134304</build-timestamp>
<is-clustered>true</is-clustered>
<version>NetApp Release 9.10.1P4: Mon May 09 22:11:44 UTC 2022</version>
<version-tuple>
<system-version-tuple>
<generation>9</generation>
<major>10</major>
<minor>1</minor>
</system-version-tuple>
</version-tuple>
</results>
######## START QUERY ########
<?xml version="1.0" ?>
<netapp xmlns="http://www.netapp.com/filer/admin" version="1.8" nmsdk_language="Python" nmsdk_version="5.2">
<license-list-info/>
</netapp>
######## GOT RESPONSE #######
Error: Unable to parse content of response:
Unable to find API: license-list-info
######## START QUERY ########
<?xml version="1.0" ?>
<netapp xmlns="http://www.netapp.com/filer/admin" version="1.8" nmsdk_language="Python" nmsdk_version="5.2">
<license-v2-list-info/>
</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 "/omd/sites/***/lib/python3/cmk/special_agents/agent_netapp.py", line 424, in __init__
tree = ET.fromstring(response.content)
File "src/lxml/etree.pyx", line 3252, in lxml.etree.fromstring
File "src/lxml/parser.pxi", line 1912, in lxml.etree._parseMemoryDocument
File "src/lxml/parser.pxi", line 1800, in lxml.etree._parseDoc
File "src/lxml/parser.pxi", line 1141, in lxml.etree._BaseParser._parseDoc
File "src/lxml/parser.pxi", line 615, in lxml.etree._ParserContext._handleParseResultDoc
File "src/lxml/parser.pxi", line 725, in lxml.etree._handleParseResult
File "src/lxml/parser.pxi", line 654, in lxml.etree._raiseParseError
File "<string>", line 4
lxml.etree.XMLSyntaxError: Input is not proper UTF-8, indicate encoding !
Bytes: 0xFD 0x17 0x08 0x37, line 4, column 314
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/omd/sites/***/share/check_mk/agents/special/agent_netapp", line 12, in <module>
sys.exit(main())
File "/omd/sites/**/lib/python3/cmk/special_agents/agent_netapp.py", line 1743, in main
licenses = fetch_license_information(args, server)
File "/omd/sites/***/lib/python3/cmk/special_agents/agent_netapp.py", line 891, in fetch_license_information
licensev2_info = query(args, server, "license-v2-list-info")
File "/omd/sites/***/lib/python3/cmk/special_agents/agent_netapp.py", line 674, in query
response = server.get_response([what])
File "/omd/sites/***/lib/python3/cmk/special_agents/agent_netapp.py", line 304, in get_response
netapp_response = NetAppResponse(response, self.debug)
File "/omd/sites/***/lib/python3/cmk/special_agents/agent_netapp.py", line 426, in __init__
tree = ET.fromstring(NetAppResponse.INVALID_XML.sub("", 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.
OMD[***]:~$
That look like this problem (2.1.0b5):
Is it a bug from my RAW 2.1.0 ?
Regards.