System Center 1801+ Virtual Machine Manager Gezondheid van toepassingshost
Microsoft.SystemCenter.VirtualMachineManager.AppHostStateMonitor (UnitMonitor)
Hiermee wordt de status van de toepassingshost bewaakt
Element properties:
Source Code:
<UnitMonitor ID="Microsoft.SystemCenter.VirtualMachineManager.AppHostStateMonitor" Accessibility="Public" Target="VMMBase!Microsoft.SystemCenter.VirtualMachineManager.ApplicationHost" TypeID="Microsoft.SystemCenter.VirtualMachineManager.TwoStatesMonitorType" ParentMonitorID="SystemHealth!System.Health.AvailabilityState">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.SystemCenter.VirtualMachineManager.AppHostStateMonitor.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="VMMBase!Microsoft.SystemCenter.VirtualMachineManager.ApplicationHost"]/ComputerName$</AlertParameter1>
<AlertParameter2>$Target/Property[Type="VMMBase!Microsoft.SystemCenter.VirtualMachineManager.ApplicationHost"]/DeploymentState$</AlertParameter2>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="AppHostDeploymentSuccess" MonitorTypeStateID="Success" HealthState="Success"/>
<OperationalState ID="AppHostDeploymentFailed" MonitorTypeStateID="Error" HealthState="Error"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>180</IntervalSeconds>
<TimeoutSeconds>180</TimeoutSeconds>
<ErrorExpression>
<RegExExpression>
<ValueExpression>
<Value Type="String">Failed</Value>
<!-- DeploymentFailed/ServicingFailed -->
</ValueExpression>
<Operator CaseSensitive="false">ContainsSubstring</Operator>
<Pattern>$Target/Property[Type="VMMBase!Microsoft.SystemCenter.VirtualMachineManager.ApplicationHost"]/DeploymentState$</Pattern>
</RegExExpression>
</ErrorExpression>
<SuccessExpression>
<RegExExpression>
<ValueExpression>
<Value Type="String">Failed</Value>
</ValueExpression>
<Operator CaseSensitive="false">DoesNotContainSubstring</Operator>
<Pattern>$Target/Property[Type="VMMBase!Microsoft.SystemCenter.VirtualMachineManager.ApplicationHost"]/DeploymentState$</Pattern>
</RegExExpression>
</SuccessExpression>
</Configuration>
</UnitMonitor>