Routerfehler im Monitoring
Adrian Schmutzler
mail at adrianschmutzler.de
Mo Nov 15 21:20:37 CET 2021
Hallo zusammen,
weil ich aus anderen Gründen gerade ins Log geschaut habe, habe ich
festgestellt, dass mehrere Leute kaputte XML-Daten ans Monitoring schicken.
Das betrifft in erster Linie die Leute, die manuell Daten senden. Wer jetzt
nicht weiß, wovon ich spreche, kann diese E-Mail einfach löschen.
...
{2021-11-15 21:02:21} - Warning: Unable to parse xml from 68:72:51:xx:97:68:
XMLSyntaxError: EntityRef: expecting ';', line 1, column 2791 (<string>,
line 1)
__Traceback (most recent call last):
__ File "/usr/local/lib/python3.7/dist-packages/ffmap/routertools.py", line
640, in parse_nodewatcher_xml
__ tree = lxml.etree.fromstring(xml)
__ File "src/lxml/etree.pyx", line 3222, in lxml.etree.fromstring
__ File "src/lxml/parser.pxi", line 1877, in
lxml.etree._parseMemoryDocument
__ File "src/lxml/parser.pxi", line 1758, in lxml.etree._parseDoc
__ File "src/lxml/parser.pxi", line 1068, in
lxml.etree._BaseParser._parseUnicodeDoc
__ File "src/lxml/parser.pxi", line 601, in
lxml.etree._ParserContext._handleParseResultDoc
__ File "src/lxml/parser.pxi", line 711, in lxml.etree._handleParseResult
__ File "src/lxml/parser.pxi", line 640, in lxml.etree._raiseParseError
__ File "<string>", line 1
__lxml.etree.XMLSyntaxError: EntityRef: expecting ';', line 1, column 2791
__
...
{2021-11-15 21:02:12} - Warning: Unable to parse xml from c4:6e:1f:xx:ff:68:
could not convert string to float: '16 000'
__Traceback (most recent call last):
__ File "/usr/local/lib/python3.7/dist-packages/ffmap/routertools.py", line
65, in import_nodewatcher_xml
__ router_update = parse_nodewatcher_xml(xml,statstime)
__ File "/usr/local/lib/python3.7/dist-packages/ffmap/routertools.py", line
684, in parse_nodewatcher_xml
__ "tc_in":
evalxpathfloat(tree,"/data/traffic_control/wan/in/text()",None),
__ File "/usr/local/lib/python3.7/dist-packages/ffmap/routertools.py", line
620, in evalxpathfloat
__ tmp = float(tree.xpath(p)[0])
__ValueError: could not convert string to float: '16 000'
...
Grüße
Adrian
Mehr Informationen über die Mailingliste franken