Наличие служб VGS (System Center 2019+ Virtual Machine Manager)

Microsoft.SystemCenter.VirtualMachineManager.VMVGSInstalledMonitor (UnitMonitor)

Отслеживает наличие виртуальных гостевых служб (VGS)

Knowledge Base article:

Сводка

Монитор служб VGS виртуальных машин сообщает о наличии виртуальных гостевых служб (VGS) на виртуальной машине.

Причины

Неработоспособное состояние означает, что на виртуальной машине не установлены виртуальные гостевые службы.

Решения

Установите на виртуальную машину расширения виртуальных гостевых служб.

Element properties:

TargetMicrosoft.SystemCenter.VirtualMachineManager.VirtualMachine
Parent MonitorSystem.Health.ConfigurationState
CategoryConfigurationHealth
EnabledTrue
Alert GenerateFalse
Alert Auto ResolveTrue
Monitor TypeMicrosoft.SystemCenter.VirtualMachineManager.TwoStatesMonitorType
RemotableTrue
AccessibilityPublic
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SystemCenter.VirtualMachineManager.VMVGSInstalledMonitor" Accessibility="Public" Target="VMMBase!Microsoft.SystemCenter.VirtualMachineManager.VirtualMachine" TypeID="Microsoft.SystemCenter.VirtualMachineManager.TwoStatesMonitorType" ParentMonitorID="SystemHealth!System.Health.ConfigurationState">
<Category>ConfigurationHealth</Category>
<OperationalStates>
<OperationalState ID="VMVGSInstalledHealthy" MonitorTypeStateID="Success" HealthState="Success"/>
<OperationalState ID="VMVGSInstalledCritical" MonitorTypeStateID="Error" HealthState="Warning"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>7200</IntervalSeconds>
<TimeoutSeconds>300</TimeoutSeconds>
<ErrorExpression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<Value Type="String"/>
</ValueExpression>
<Operator CaseSensitive="false">Equal</Operator>
<ValueExpression>
<Value Type="String">$Target/Property[Type="VMMBase!Microsoft.SystemCenter.VirtualMachineManager.VirtualMachine"]/VGS$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<Value Type="String">Running</Value>
</ValueExpression>
<Operator CaseSensitive="false">Equal</Operator>
<ValueExpression>
<Value Type="String">$Target/Property[Type="VMMBase!Microsoft.SystemCenter.VirtualMachineManager.VirtualMachine"]/State$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</ErrorExpression>
<SuccessExpression>
<SimpleExpression>
<ValueExpression>
<Value Type="String"/>
</ValueExpression>
<Operator CaseSensitive="false">NotEqual</Operator>
<ValueExpression>
<Value Type="String">$Target/Property[Type="VMMBase!Microsoft.SystemCenter.VirtualMachineManager.VirtualMachine"]/VGS$</Value>
</ValueExpression>
</SimpleExpression>
</SuccessExpression>
</Configuration>
</UnitMonitor>