CMK 2.0.0 - InnovaphonePlugin Issue


The Plugin Outputs the following and fails:

>     Agent exited with code 1: Traceback (most recent call last):
File "/omd/sites/MASTER/share/check_mk/agents/special/agent_innovaphone", line 12, in <module>
File "/omd/sites/MASTER/lib/python3/cmk/special_agents/", line 102, in main
get_pri_channel(credentials, 'PRI' + str(channel_num))
File "/omd/sites/MASTER/lib/python3/cmk/special_agents/", line 33, in get_pri_channel
data = etree.parse(get_url(address, user, password)).getroot()
File "/omd/sites/MASTER/lib/python3.8/xml/etree/", line 1202, in parse
tree.parse(source, parser)
File "/omd/sites/MASTER/lib/python3.8/xml/etree/", line 595, in parse
self._root = parser._parse_whole(source)
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 1, column 0

The message looks like your Innovaphone gives not an xml output.
I would inspect what you get as an result before it is parsed.

This must be modifed to output first the result of the “get_url” before it is parsed.

A try except block around the following block in the
data = etree.parse(get_url(address, user, password)).getroot()
I think it does happen on devices that doesnt have a PRI but instead using ISDN interfaces.

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