VMware Horizon Hypervisor Connection State Alerting

GripLogix.VMware.HorizonView.Rule.HypervisorConnectionState (Rule)

Element properties:

TargetGripLogix.VMware.HorizonView.Server
CategoryAlert
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
RemotableTrue
Alert Message
Hypervisor Connection State Error for machine {0}

HorizonView reports a Hypervisor Connection State error.
Host Name: {0}
Host State: {1}

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource GripLogix.VMware.HorizonView.DataSource.Monitoring.Server.PropertyBag Default
CD ConditionDetection System.ExpressionFilter Default
Alert WriteAction System.Health.GenerateAlert Default

Source Code:

<Rule ID="GripLogix.VMware.HorizonView.Rule.HypervisorConnectionState" Target="GripLogix!GripLogix.VMware.HorizonView.Server" Enabled="true" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Alert</Category>
<DataSources>
<DataSource ID="DS" TypeID="GripLogix.VMware.HorizonView.DataSource.Monitoring.Server.PropertyBag">
<IntervalSeconds>300</IntervalSeconds>
<SyncTime/>
</DataSource>
</DataSources>
<ConditionDetection ID="CD" TypeID="System!System.ExpressionFilter">
<Expression>
<And>
<Expression>
<Exists>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='HypervisorHostName']</XPathQuery>
</ValueExpression>
</Exists>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='HypervisorConnectionState']</XPathQuery>
</ValueExpression>
<Operator>NotEqual</Operator>
<ValueExpression>
<Value Type="String">TESTCONNECTED</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</ConditionDetection>
<WriteActions>
<WriteAction ID="Alert" TypeID="Health!System.Health.GenerateAlert">
<Priority>1</Priority>
<Severity>2</Severity>
<AlertMessageId>$MPElement[Name="GripLogix.VMware.HorizonView.Rule.HypervisorConnectionState.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/Property[@Name='HypervisorHostName']$</AlertParameter1>
<AlertParameter2>$Data/Property[@Name='HypervisorConnectionState']$</AlertParameter2>
</AlertParameters>
<Suppression>
<SuppressionValue>$Data/Property[@Name='HypervisorHostName']$</SuppressionValue>
<SuppressionValue>$Data/Property[@Name='HypervisorConnectionState']$</SuppressionValue>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>