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
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
Comment