System Center 2016 Virtual Machine Manager VMM Agent Reachable

Microsoft.SystemCenter.VirtualMachineManager.2016.VMMAgentReachableMonitor (UnitMonitor)

監視 VMM 代理程式是否可連線

Knowledge Base article:

摘要

VMM Agent Watcher 監視會指出受管理虛擬機器主機或程式庫伺服器上 Virtual Machine Manager 代理程式的可用性。如果無法連線到 VMM 代理程式,監視會處於重大狀態 (紅色)。如果處於不明狀態,表示尚未開始監視伺服器。

原因

此程式庫伺服器或主機的狀況不良狀態表示無法在伺服器上連線到 Virtual Machine Manager 代理程式服務。

解決方式

若要對代理程式服務監視的狀況不良狀態進行疑難排解:

1

重新啟動主機或程式庫伺服器上的 Virtual Machine Manager 代理程式服務。您可以在伺服器上的 [系統管理工具] 中,使用 [服務] 來完成此動作,或是使用下一個程序從 Operations 主控台來完成此動作。

2

如果重新啟動 Virtual Machine Manager 代理程式無法解決問題:

確定主機或程式庫伺服器已連線。

確定 VMM 管理伺服器可以連線至主機或程式庫伺服器。

Element properties:

TargetMicrosoft.SystemCenter.VirtualMachineManager.2016.AgentWatcher
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.SystemCenter.VirtualMachineManager.2016.TwoStatesMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
VMM 代理程式無法連線
{0} 上 VMM 代理程式狀態為 {1}
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SystemCenter.VirtualMachineManager.2016.VMMAgentReachableMonitor" Accessibility="Public" Target="VMM2016Discovery!Microsoft.SystemCenter.VirtualMachineManager.2016.AgentWatcher" TypeID="Microsoft.SystemCenter.VirtualMachineManager.2016.TwoStatesMonitorType" ParentMonitorID="SystemHealth!System.Health.AvailabilityState">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.SystemCenter.VirtualMachineManager.2016.VMMAgentReachableMonitor.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</AlertParameter1>
<AlertParameter2>$Target/Property[Type="VMM2016Discovery!Microsoft.SystemCenter.VirtualMachineManager.2016.AgentWatcher"]/AgentStatus$</AlertParameter2>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="VMMAgentReachableHealthy" MonitorTypeStateID="Success" HealthState="Success"/>
<OperationalState ID="VMMAgentReachableCritical" MonitorTypeStateID="Error" HealthState="Error"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>300</IntervalSeconds>
<TimeoutSeconds>300</TimeoutSeconds>
<ErrorExpression>
<SimpleExpression>
<ValueExpression>
<Value Type="String">NeedsAttention</Value>
</ValueExpression>
<Operator CaseSensitive="false">Equal</Operator>
<ValueExpression>
<Value Type="String">$Target/Property[Type="VMM2016Discovery!Microsoft.SystemCenter.VirtualMachineManager.2016.AgentWatcher"]/AgentStatus$</Value>
</ValueExpression>
</SimpleExpression>
</ErrorExpression>
<SuccessExpression>
<SimpleExpression>
<ValueExpression>
<Value Type="String">NeedsAttention</Value>
</ValueExpression>
<Operator CaseSensitive="false">NotEqual</Operator>
<ValueExpression>
<Value Type="String">$Target/Property[Type="VMM2016Discovery!Microsoft.SystemCenter.VirtualMachineManager.2016.AgentWatcher"]/AgentStatus$</Value>
</ValueExpression>
</SimpleExpression>
</SuccessExpression>
</Configuration>
</UnitMonitor>