zarplata / zabbix-agent-extension-elasticsearch

Zabbix agent extension for monitoring Elasticsearch
35 stars 29 forks source link

Error in Elasticsearch discovery rule #6

Open VN1977 opened 6 years ago

VN1977 commented 6 years ago

The error is

Cannot create item: item with the same key "elasticsearch.node_stats.jvm.buffer_polls.count.[{#JVMBUFFERSPOOLS}]" already exists

How to correct it?

VN1977 commented 6 years ago

default

akitsul commented 6 years ago

Hi,

please check the items of this host, is there any discovery items found there? 2018-08-27_181900_1895x848

VN1977 commented 6 years ago

default Yes, there are some items. But my items have type Zabbix aggregate and yours are Zabbix trapper. Why?

akitsul commented 6 years ago

Hello, this is normal.

What does not work?

VN1977 commented 6 years ago

Hi! Everything works OK. But my question was about only error in discovery rule. What's wrong with it? Why do we have such an error? As I can see this rule tries to create an item with key elasticsearch.node_stats.jvm.buffer_polls.count[{#JVMBUFFERSPOOLS}] but the item with the same key already exist. I used zabbix_get to check the discovery rule. zabbix_get -s IP -k elasticsearch.discovery[Elasticsearch_cluster_1] The answer is {"data":[{"{#GROUPNAME}":"Elasticsearch_cluster_1"},{"{#JVMGCCOLLECTORS}":"old"},{"{#JVMGCCOLLECTORS}":"young"},{"{#JVMBUFFERSPOOLS}":"direct"},{"{#JVMBUFFERSPOOLS}":"mapped"},......... So this discovery rule works as expected but why Zabbix tries to create new items and only for prototype Template App Elasticsearch Service: JVM buffer pools {#JVMBUFFERSPOOLS} count again and again? I don't like if something works with errors so I try to get rid of any of them.

dmitry-sobol commented 6 years ago

I have the same error: image

akitsul commented 6 years ago

@dmitry-sobol Hello, this is normal.

What does not work?

breisig commented 5 years ago

It's not working me either.

aguzmans commented 5 years ago

I have the same problem with a customized mysql Discovery:

root@ubuntu-bionic:/home/zabbix# zabbix_agentd -t docker.container.service[con_nc_test_abel_mysql7,mysqld] -c /etc/zabbix/instances/con_nc_test_abel_mysql7/zabbix_agentd.conf docker.container.service[con_nc_test_abel_mysql7,mysqld] [t|{ "data":[ { "{#SERVICENAME}":"mysqld" } ] }] root@ubuntu-bionic:/home/zabbix#

That is the discovery working from the agent perspective. I have my agent in Active mode. The web interface of zabbix says on this discovery template item: Cannot create item: item with the same key "docker.container.mysql_realtime[{HOST.HOST},innodb_buffer_pool_pages_dirty]" already exists. Cannot create item: item with the same key "docker.container.mysql_realtime[{HOST.HOST},innodb_buffer_pool_pages_total]" already exists. (...) Then the items are not added to my discovery mysql. Where do those items already exist? I do not understand.

Pakbon commented 5 years ago

Same problem here with a custom LLD script. With the exception that it still adds those keys and successfully monitors the values of the keys . Cannot create item: item with the same key "solr.online[{#SOLRPORT6}]" already exists. Cannot create item: item with the same key "solr.online[{#SOLRPORT}]" already exists.

Olodain commented 5 years ago

When I try to make , I have an error. Could you please help me for this? Im newbie.

cd /root/zabbix-agent-extension-elasticsearch/.gopath/src/zabbix-agent-extension-elasticsearch; \ GOPATH=/root/zabbix-agent-extension-elasticsearch/.gopath \ dep ensure -v /bin/sh: 2: dep: not found Makefile:40: recipe for target 'deps' failed make: *** [deps] Error 127

geryjuhasz commented 3 years ago

When I try to make , I have an error. Could you please help me for this? Im newbie.

cd /root/zabbix-agent-extension-elasticsearch/.gopath/src/zabbix-agent-extension-elasticsearch; GOPATH=/root/zabbix-agent-extension-elasticsearch/.gopath dep ensure -v /bin/sh: 2: dep: not found Makefile:40: recipe for target 'deps' failed make: *** [deps] Error 127

will be fixed with:

apt install go-dep