zabbix icon indicating copy to clipboard operation
zabbix copied to clipboard

elasticsearch.py returns Unable to load JSON data

Open romale opened this issue 9 years ago • 4 comments

Hi, i've updated my ES to v2.1, and this script stop working. In my case, the "hostname" and "datanode name" are differs Could you help? Thanks

rpm -qa|grep elastic elasticsearch-2.1.0-1.noarch

./elasticsearch.py Unable to load JSON data!

romale avatar Dec 15 '15 09:12 romale

There was recent commit https://github.com/sepich/zabbix/commit/f413717ce5c3a4b9ead0c8f417a2ba2a536b78d9 for v2 support. Are you using latest version?

sepich avatar Dec 15 '15 18:12 sepich

Yes. I've download now latest version by: wget https://raw.githubusercontent.com/sepich/zabbix/f413717ce5c3a4b9ead0c8f417a2ba2a536b78d9/elasticsearch.py

mv elasticsearch.py elasticsearch.py.latest

remove windows line end

otherwise i've

./elasticsearch.py.latest

: No such file or directory )

sed 's/\r$//' ./elasticsearch.py.latest > ./elasticsearch.py.latest-1

./elasticsearch.py.latest-1

Unable to load JSON data!

romale avatar Dec 15 '15 20:12 romale

After update a python script, i getting a same error. How can i fix it?

itJunky avatar Mar 10 '16 13:03 itJunky

Can you try last version? It works for our 2.x for half a year now

sepich avatar Jan 06 '17 22:01 sepich