-
Type:
Incident report
-
Resolution: Fixed
-
Priority:
Major
-
None
-
Affects Version/s: 3.2.6
-
Component/s: Server (S)
-
None
i am working with discovery LLD to generate hosts via host prototype
i am trying to handle docker, and so far docker isntances are created as hosts with docker id as visible name and a fixed name as docker host name
fixed name is like :postgres_database
id is like : postgres_database_bbd213f36739
This is done this way so that when we restart instances, the data conserning the same docker instance is inserted into the same zabbix host
But apparently host prototype doesn't update an existing server, our display names arent updated. And we need to use the display name as macro in the items, then pass that to script to get data from inside the dockers.
So is a prototype supposed to update, or can it only destroy/create them?
Maybe as the host name already exists, it doesn t update the visible name when it changes.
The discover run every 10min. So that should be pretty up to date (i see visible names from 1-2 weeks ago)
Hosts not discovered are deleted after 2 weeks. I dont think there's a problem around that, as the hosts are considered online, it s their visible name which isn t updated (and there s no data from items inside, because we depdends on visible names to get it)