Open kaloyan-s opened 8 years ago
@kaloyan-s , you most likely figure it out by now that you're not suppose to use the script directly, but with some values e.g.:
# ./elastizabbix indices _all.total.search.query_time_in_millis
3312
# ./elastizabbix health active_primary_shards
20
For some reason this posted before I finished. Anyway, I've just installed it with Zabbix 3.2 and it loads them fine, also discovery works. I did had to install some python modules "urllib2-file/simplejson" to get it going from a default Centos installation.
Some of the checks require permission in /tmp folder, some tmp folders have sticky bit by default, so you might need to change some permissions, however Zabbix is good on letting you know what the issue is from the logs (debug logs if needed).
Hey @kirkwor,
Do you mind elaborating abit on how the issue was solved?. For some reasons im having similar challenges configuring EC nodes on Centos7.
Does it require python-simplejson module for urllib2-file to work?
Traceback (most recent call last):
File "./elastizabbix", line 88, in
@latundetoks that is correct, in my case by default I had no json module so I had to install python-simplejson (pip install simplejson) to get it to work for me. In your case, if the error is correct, I think it refers to wrong ES host specified?
Hi Mike,
In zabbix 3.0 neither of the items is active. All remain not supported. When I run the script i got this:
Mypc:/etc/zabbix/scripts# ./elastizabbix Traceback (most recent call last): File "./elastizabbix", line 68, in
api = sys.argv[1]
IndexError: list index out of range
Can you help ?