System Center 2019+ Virtual Machine Manager VMM Host State

Microsoft.SystemCenter.VirtualMachineManager.VMMHostStateMonitor (UnitMonitor)

Monitors the state of the VMM host

Knowledge Base article:

Summary

The host state monitor indicates whether a virtualization host that is managed by Virtual Machine Manager (VMM) is in a state which requires administrator attention. If the state is unknown, monitoring has not yet begun for the virtualization host.

Causes

A host which is labeled as needs attention by Virtual Machine Manager will cause this monitor to go into a critical state.

Resolutions

In the Virtual Machine Manager console, locate the host in the fabric attention and access the status tab of its properties to effectively troubleshoot the issue requiring attention.

Element properties:

TargetMicrosoft.SystemCenter.VirtualMachineManager.VMHost
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.SystemCenter.VirtualMachineManager.TwoStatesMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
VMM host state not healthy
The status of the VMM host {0} is {1}, and it is not OK
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SystemCenter.VirtualMachineManager.VMMHostStateMonitor" Accessibility="Public" Target="VMMBase!Microsoft.SystemCenter.VirtualMachineManager.VMHost" TypeID="Microsoft.SystemCenter.VirtualMachineManager.TwoStatesMonitorType" ParentMonitorID="SystemHealth!System.Health.AvailabilityState">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.SystemCenter.VirtualMachineManager.VMMHostStateMonitor.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="VMMBase!Microsoft.SystemCenter.VirtualMachineManager.VMHost"]/HostName$</AlertParameter1>
<AlertParameter2>$Target/Property[Type="VMMBase!Microsoft.SystemCenter.VirtualMachineManager.VMHost"]/State$</AlertParameter2>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="VMMHostStateHealthy" MonitorTypeStateID="Success" HealthState="Success"/>
<OperationalState ID="VMMHostStateNotHealthy" MonitorTypeStateID="Error" HealthState="Error"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>300</IntervalSeconds>
<TimeoutSeconds>300</TimeoutSeconds>
<ErrorExpression>
<SimpleExpression>
<ValueExpression>
<Value Type="String">$Target/Property[Type="VMMBase!Microsoft.SystemCenter.VirtualMachineManager.VMHost"]/State$</Value>
</ValueExpression>
<Operator CaseSensitive="false">Equal</Operator>
<ValueExpression>
<Value Type="String">NeedsAttention</Value>
</ValueExpression>
</SimpleExpression>
</ErrorExpression>
<SuccessExpression>
<SimpleExpression>
<ValueExpression>
<Value Type="String">$Target/Property[Type="VMMBase!Microsoft.SystemCenter.VirtualMachineManager.VMHost"]/State$</Value>
</ValueExpression>
<Operator CaseSensitive="false">NotEqual</Operator>
<ValueExpression>
<Value Type="String">NeedsAttention</Value>
</ValueExpression>
</SimpleExpression>
</SuccessExpression>
</Configuration>
</UnitMonitor>