stitrace / zabbix_cisco_ise

Cisco ISE sessions zabbix monitoring template
0 stars 1 forks source link

no exceptions catched #2

Closed avirus closed 2 years ago

avirus commented 2 years ago

can you please add exceptions handling? from CLI script works.

Value of type "string" is not suitable for value type "Numeric (unsigned)". Value "Traceback (most recent call last): File "/usr/lib/zabbix/externalscripts/ise.py", line 43, in resp = json.loads(json.dumps(xmltodict.parse(resp.text))) File "/usr/lib/python3.6/site-packages/xmltodict.py", line 327, in parse parser.Parse(xml_input, True) xml.parsers.expat.ExpatError: syntax error: line 1, column 0"

avirus commented 2 years ago

pull request filed