In our Setup, we have a vCenter with 4 Clusters and we need to monitor them differently. So, we created two Custom Groups:
Group 1:
Every descendant VM of Cluster1 / Cluster2 / Cluster3
Group 2:
Every descendent of vCenter
Excludes Group 1 (and its descendants)
We have noticed that if we add new VMs to Clusters 1/2/3, they appear in Group 1, but they are not automatically excluded in Group 2.
Even though this whole approach can be questioned, we have primarily two specific questions (for my understanding):
Thanks!
You'll definitely need to keep group membership up to date, and that usually happens upon every collection cycle. If that group has dynamic membership and you exclude it, the exclusion will effectively be dynamic as well.
Custom datacenters would be great for this
That way it is all dynamic for adding VMs. The only downside is that the CDC is a manual update if you add more clusters but hopefully that does not happen much. This is how i define all my groups for VMs, Hosts, cluster and datastores for assigning policies and works well.
Thanks for the replies so far!
@daphnissov
“Keep Group membership up to date” is basically checked everywhere.
If exclusion rules are dynamic, I don’t understand why new VMs (matching criteria’s for Group1) are not excluded from Group2 automatically.
If I re-add Group1 to exclusion list of Group2, Membership becomes as expected.
That’s why I thought, Membership might be calculated every X minutes / hours.
@sxnxr
I don’t have time to test it today, I’ll do it next week and keep you updated.
For further understanding, goal is actually to monitor the whole vCenter except VMs in mentioned three Clusters. That’s the reason why Group2 contains the whole vC except members of Group1.
Just add all the clusters you want to to monitor to one CDC and all the clusters you dont want to to the other and assign the separate policies to the correct custom group that contains the VMs