zabbix / zabbix-docker

Official Zabbix Dockerfiles
https://www.zabbix.com
GNU Affero General Public License v3.0
2.38k stars 1.37k forks source link

Zabbix 5.4, the "discovery rules" does not work at "triggers" level #872

Closed alifro81 closed 3 years ago

alifro81 commented 3 years ago

Hi, I have a problem with Zabbix 5.4, indeed since I was migrated to this version, I noticed that there is an error at the deployment level of "Template de vmware" because when I discover the hypervisor, Zabbix does not recover the items or halfway .... I made a test plan (redo 0 templates or a template already set for zabbix) ......... I do not know what to do, an adviser? or if not, I am waiting for the new version 6 ???

Update: I tested with 6 (beta) and it's the same ......

Thank you Kind regards

dotneft commented 3 years ago

Please check our https://www.zabbix.com/forum/ forum and https://support.zabbix.com/. The issue is not related to docker images.

alifro81 commented 3 years ago

zabbix1

zabbix2

alifro81 commented 3 years ago

the problem comes with the containers, when I install version 5.2, everything works correctly but when I install 5.4 ou plus, it does not work.

everything is in docker :) thanks for your help

dotneft commented 3 years ago

Docker images are not changed in comparison with 5.2, but Zabbix is changed :-) So the issue is related to Zabbix directly, not images issue.

alifro81 commented 3 years ago

ah :0 ......... but every image calls zabbix non? because in 5.2 les declonchers works very well and from 5.4 non? is it a problem of zabbix? because when I install zabbix 5.4 without conteneur it works fine :\ (traduction google)

dotneft commented 3 years ago

So the issue, when you link VMware Hypervisor to some host, the host does not inherit all triggers from the template? Do you use vanilla template?

alifro81 commented 3 years ago

yes, I use the "vmware" template model, that is to say, I create 1 host (vsphere) where with the decloncheur discovers the hyperviseur but does not recover the triggers, and if he recovers -> recovers in the middle :(

dotneft commented 3 years ago

I just checked the issue with vanilla 6.0, everything is fine. Template has 6 triggers, created host with linked template - also 6 triggers. Please describe how you run containers?

alifro81 commented 3 years ago

i use the 3 containers (server,web and agent) with mysql I have tested with 5.2 and it works but I want to use version 5.4 because 5.2 is currently in production without docker

ahi something that I do wrong?

zabbix3 zabbix4

dotneft commented 3 years ago

What triggers do you have in the template and what you have on host level?

alifro81 commented 3 years ago

In my vsphere host, I put the vmware template (zabbix template) and then it makes a discovery of all hypervisors (with the vanilla template). The problem is only in the triggers :(, everything else is ok ... On the other hand I tested when you activate and deactivate the triggers they appear but without their dependence

Very strange -_- ... It's the first time it happens to me... with version 5.2 I never had any problem :( ... Thanks for your help ^^

alifro81 commented 3 years ago

I just did a test and I think the problem comes from my zabbix configuration (.env_srv), do you have a template that works correctly on the .env_srv?

dotneft commented 3 years ago

Probably DB charset is not correct. Also I recommend you check Zabbix server log for any SQL errors.

alifro81 commented 3 years ago

I came from testing and nothing ..... the problem with the triggers continues ... my .env_srv seems correct ???

zabbix5

alifro81 commented 3 years ago

in the "logs" it only tells me, memory problem

image

alifro81 commented 3 years ago

bon, I can not find a solution to my problem ... if someone has had such a problem, please share

dotneft commented 3 years ago

I'm still waiting screenshots from your side. What triggers you have on template level and what triggers on host level with the template.

alifro81 commented 3 years ago

oui, first I create the vsphere, with the vmware template ( from zabbix) zabbixce1 zabbixce2 zabbixce3

second, thanks to the "decouverte", the hyperviseurs appear (with the "vmware hypervisor" template). the problem: the hyperviseurs don't have the template tiggers :( zabbixce4

I have tried for now almost everything ( macros, .env_srv configuration, mysql version).... and as I was saying, the problem happens to me starting from >5.4 if I change to version 5.2, everything works fine.

But if I install 5.4 without container(docker), it works correctly :( Cdt

alifro81 commented 3 years ago

the 6 triggers de template vmware hypervisor zabbixce5

it triggers it to recover mon hypervisor zabbixce6

in zabbix version 6 (beta 4) does not recover anything from the triggers :(

dotneft commented 3 years ago

Do you have vmware.hv.sensor.health.state item on the discovered host level?

alifro81 commented 3 years ago

Yes, on the other hand it does not work because my vsphere does not have the sensor (it was always like that)