更新資源可用

Microsoft.SystemCenter.VirtualMachineManager.UpdatedResourcesAvailableMonitor (UnitMonitor)

監視 Virtual Machine Manager 服務執行個體是否有一或多個可用的更新資源

Knowledge Base article:

摘要

此服務有可用的更新資源。

原因

此服務已有可用的更新資源。必須更新服務才能使用這些更新資源。

解決方式

使用 Virtual Machine Manager 更新服務。您可以執行 Get-SCNotifications PowerShell 指令程式,以檢視此服務可用的更新資源。

Element properties:

TargetMicrosoft.SystemCenter.VirtualMachineManager.Discovery.Service
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.SystemCenter.VirtualMachineManager.TwoStatesMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
更新資源可以使用
服務 {0} 有一或多個可用的更新資源。若要查看可用的更新資源,請執行下列 VMM Cmdlet:Get-SCService -Name "{0}" | Get-SCNotifications
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SystemCenter.VirtualMachineManager.UpdatedResourcesAvailableMonitor" Accessibility="Public" Target="VMMDiscovery!Microsoft.SystemCenter.VirtualMachineManager.Discovery.Service" TypeID="Microsoft.SystemCenter.VirtualMachineManager.TwoStatesMonitorType" ParentMonitorID="SystemHealth!System.Health.AvailabilityState">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.SystemCenter.VirtualMachineManager.UpdatedResourcesAvailable.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="System!System.Entity"]/DisplayName$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="NoUpdatedResources" MonitorTypeStateID="Success" HealthState="Success"/>
<OperationalState ID="UpdatedResources" MonitorTypeStateID="Error" HealthState="Warning"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>7200</IntervalSeconds>
<TimeoutSeconds>300</TimeoutSeconds>
<ErrorExpression>
<SimpleExpression>
<ValueExpression>
<Value Type="String">$Target/Property[Type="VMMBase!Microsoft.SystemCenter.VirtualMachineManager.Service"]/NotificationsAvailable$</Value>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="Boolean">true</Value>
</ValueExpression>
</SimpleExpression>
</ErrorExpression>
<SuccessExpression>
<SimpleExpression>
<ValueExpression>
<Value Type="String">$Target/Property[Type="VMMBase!Microsoft.SystemCenter.VirtualMachineManager.Service"]/NotificationsAvailable$</Value>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="Boolean">false</Value>
</ValueExpression>
</SimpleExpression>
</SuccessExpression>
</Configuration>
</UnitMonitor>