System Center 2019+ Virtual Machine Manager VM Guest State

Microsoft.SystemCenter.VirtualMachineManager.VMGuestStateMonitor (UnitMonitor)

Monitors the guest related state of a virtual machine

Element properties:

TargetMicrosoft.SystemCenter.VirtualMachineManager.VirtualMachine
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledFalse
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.SystemCenter.VirtualMachineManager.VMStateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
VM state not healthy
The virtual machine status is {0}.
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SystemCenter.VirtualMachineManager.VMGuestStateMonitor" Accessibility="Public" Enabled="false" Target="VMMBase!Microsoft.SystemCenter.VirtualMachineManager.VirtualMachine" TypeID="Microsoft.SystemCenter.VirtualMachineManager.VMStateMonitorType" ParentMonitorID="SystemHealth!System.Health.AvailabilityState">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.SystemCenter.VirtualMachineManager.VMGuestStateMonitor.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="VMMBase!Microsoft.SystemCenter.VirtualMachineManager.VirtualMachine"]/State$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="VMStateHealthy" MonitorTypeStateID="Success" HealthState="Success"/>
<OperationalState ID="VMStateCritical" MonitorTypeStateID="Error" HealthState="Error"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>1800</IntervalSeconds>
<TimeoutSeconds>1800</TimeoutSeconds>
<PropertyValue>$Target/Property[Type="VMMBase!Microsoft.SystemCenter.VirtualMachineManager.VirtualMachine"]/State$</PropertyValue>
<FailedValue>NotApplicable</FailedValue>
<MissingValue>UpdateFailed</MissingValue>
<!--Update/Customization failed are the 2 states this monitor is alerting on-->
<PausedValue>CustomizationFailed</PausedValue>
<UnsupportedClusterPattern>NotApplicable</UnsupportedClusterPattern>
<NotRespondingPattern>NotApplicable</NotRespondingPattern>
<IncompletePattern>NotApplicable</IncompletePattern>
<ExcludedState1>NotApplicable</ExcludedState1>
<ExcludedState2>NotApplicable</ExcludedState2>
</Configuration>
</UnitMonitor>