zabbix
zabbix copied to clipboard
elasticsearch.py returns Unable to load JSON data
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!
There was recent commit https://github.com/sepich/zabbix/commit/f413717ce5c3a4b9ead0c8f417a2ba2a536b78d9 for v2 support. Are you using latest version?
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!
After update a python script, i getting a same error. How can i fix it?
Can you try last version? It works for our 2.x for half a year now