Elasticsearch-zabbix
Elasticsearch-zabbix copied to clipboard
Basic user auth
Does anyone know a way to authenticate user created with Search Guard (or X-Pack, whatever)?
I have 3-node elasticsearch cluster. I installed Elasticsearch-zabbix and try to connect to ES cluster. But the problem is that Elasticsearch-zabbix does not have permission to get cluster stats or health. The problem is here:
# Try to establish a connection to elasticsearch
try:
conn = Elasticsearch('localhost:9200', sniff_on_start=False)
except Exception, e:
zbx_fail()
I tried something like that:
# Try to establish a connection to elasticsearch
try:
conn = Elasticsearch('admin:admin@localhost:9200', sniff_on_start=False)
except Exception, e:
zbx_fail()
But it does not work. Is there any way to walk around this issue?