Open inittabr opened 4 years ago
gstatus from 1.0.x changed somewhat since previous releases. it's now based on pyhton3 et output format is different as far as I remember.
Any fix for this? https://stackoverflow.com/questions/48140858/json-decoder-jsondecodeerror-extra-data-line-2-column-1-char-190 sounds explanatory, however i am no python men, so can't fix it myself.
looks like https://github.com/fabricat/zabbix-glusterfs fixed it on his fork
gstatus --version gstatus 1.0.4 gstatus output result - correct. When run gstatus_discovery.py - JSONDecodeError. ./gstatus_discovery.py Traceback (most recent call last): File "./gstatus_discovery.py", line 9, in
gluster_info = json.loads(json_part)
File "/usr/lib64/python3.6/json/init.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python3.6/json/decoder.py", line 342, in decode
raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 1 column 2 (char 1)