I have created an event for old VM snapshots. I would like the notification to list in which DataCenter and Cluster the VM is located.
I am seeing and inconsistency with which entities are available.
I can use ${N=SwisEntity;M=Host.Cluster.Name} to get the Cluster Name, but ${N=SwisEntity;M=Host.DataCenter.Name} doesn't provide the Data Center name.
Example:
Alert ${N=Alerting;M=AlertName} on ${N=SwisEntity;M=Name} in ${N=SwisEntity;M=Host.DataCenter.Name} ${N=SwisEntity;M=Host.Cluster.Name}.
Produces
Alert VMware - Alert on old snapshots on VM001 in ${N=SwisEntity;M=Host.DataCenter.Name} VM Cluster 1.
How do I get the DataCenter name?