Ad Widget

Collapse

Host Prototype: I would like to inherit the Host Group(s) of the parent doing the LLD

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • marcos.della
    Junior Member
    • Dec 2024
    • 9

    #1

    Host Prototype: I would like to inherit the Host Group(s) of the parent doing the LLD

    Currently I have a LLD that uses a host prototype to create a new host. One of the things in the host prototype is the Host Group field where I can set a host group entry. What I would like to do is to inherit the host group(s) of the parent that is calling this prototype.

    For instance, say my "parent" device is in the host group "IT/Cluster" and I create several hosts using LLD under this. I'd like each host to include the "IT/Cluster" entry in their host group. Note that the template I'm using might have different host groups depending on how the parent was created (for instance, "DPRO/Cluster" or "Sales/Cluster" so that the created hosts will inherit those parent groups).

    Suggestions? I know there is a Group prototype function however being that this is trying to inherit the parent groups, how might I use this?

    Marcos
  • marcos.della
    Junior Member
    • Dec 2024
    • 9

    #2
    So far in trying to read the documentation, its rather fuzzy on this topic (I assume because its new) and I have yet to find an example template that makes sense for inheriting host groups.

    This has become a problem for us using the Nutanix template as all the inherited "hosts" from LLD host prototypes, none of them have a host group that any user can actually see (groups are automatically overwritten). We can hard code values here in the prototypes, however we have clusters owned by multiple different groups so that doesn't work either.

    Anyone have any pointers to any examples on how to make effective use of the group prototype?

    I was looking at this post and its basically the same problem but in this case with Kuberneties... https://www.zabbix.com/forum/zabbix-...ment-in-zabbix
    Last edited by marcos.della; 05-02-2025, 21:16.

    Comment

    • cyber
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2006
      • 4806

      #3
      as long as I see, tehre is no hostgroup inheriting ..
      Group prototypes are only based on the data frmo discovery... I dont know how you would include "current" hostgroup into discovery data..
      I would say, it is a candidate for development.. There are other similar ones, like inherit tags from parent etc..

      Comment

      • RocketSam
        Junior Member
        • Nov 2025
        • 3

        #4
        Hello marcos.della, did you find any solution or a suitable workaround for the task?

        Comment

        Working...