Reference a Property in MonitoringRule Expression

Hello, guys! Need some advice in this)

I have a group with Dynamic Membership rule based on a expression:

                  <Expression>

                    <SimpleExpression>

                      <ValueExpression>

                        <Property>$MPElement[Name="VVEVL!Veeam.Virt.Extensions.VMware.VMGUEST"]/clusterName$</Property>

                      </ValueExpression>

                      <Operator>Equal</Operator>

                      <ValueExpression>

                        <Value>Text</Value>

                      </ValueExpression>

                    </SimpleExpression>

                  </Expression>

It gathers all the datastores attached to a VM's that belongs to a cluster named "Text" and put them in this group

This works fine.

I'm trying to reference a cluster name from another group like this:

                  <Expression>

                    <SimpleExpression>

                      <ValueExpression>

                        <Property>$MPElement[Name="VVEVL!Veeam.Virt.Extensions.VMware.VMGUEST"]/clusterName$</Property>

                      </ValueExpression>

                      <Operator>Equal</Operator>

                      <ValueExpression>

                        <Property>$MPElement[Name="MyPack.VMware!MyPack.VMware.Groups.MainClusterGroup"]/displayName$</Property>

                      </ValueExpression>

                    </SimpleExpression>

                  </Expression>

But i get an error:

Error 141 The configuration specified for Module GroupPopulationDataSource is not valid.
: Incorrect expression specified: $MPElement[Name="MyPack.VMware!MyPack.VMware.Groups.MainClusterGroup"]/Id. Unable to resolve this expression. Check the expression for errors. (Hints:  Check for correct character casing (upper case/lower case), mismatched "$" signs, double quotes("), square brackets "[" or "]"). Here is a sample expression: $MPElement[Name="Windows!Microsoft.Windows.Computer"]/NetworkName$
   (Path = MyPack.VMware.Groups.MainDatastoreGroup.Populate/GroupPopulationDataSource) C:\Program Files (x86)\MSBuild\Microsoft\VSAC\Microsoft.SystemCenter.OperationsManager.targets 255 6 MyPack.VMware

The error always loses the ending '$' sign in expression. Can figure out what to do next

Can some one guide me to a right direction? Thanks!

April 26th, 2015 7:11am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics