System Center 2019+ Virtual Machine Manager Operations Manager Konsolu

Microsoft.SystemCenter.VirtualMachineManager.OpsMgrConsoleMonitor (UnitMonitor)

Operations Manager İşletim Konsolu'nun var olup olmadığını izler

Knowledge Base article:

Özet

Operations Manager, Operations Manager Konsolu yüklü olmayan bir Virtual Machine Manager sunucusu algıladı. Operations Manager tümleştirmesinin düzgün bir şekilde çalışması için VMM sunucusunda Operations Manager Konsolu'nun yüklü olması gerekir.

Nedenler

VMM sunucunda Operations Manager Konsolu yüklenmemiştir.

Çözümlemeler

Operations Manager tümleştirmesinin doğru çalışmasını sağlamak için Virtual Machine Manager sunucusunda Operations Manager Konsolu'nun yükleyin.

Element properties:

TargetMicrosoft.SystemCenter.VirtualMachineManager.Discovery.VMMManagementServer
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.TimedScript.TwoStateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
Operations Manager Konsolu yüklü değil
Operations Manager İşletim konsolu bilgisayarda yüklü değil. Bilgisayar adı: {0}
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SystemCenter.VirtualMachineManager.OpsMgrConsoleMonitor" Accessibility="Public" Target="VMMDiscovery!Microsoft.SystemCenter.VirtualMachineManager.Discovery.VMMManagementServer" ParentMonitorID="SystemHealth!System.Health.AvailabilityState" Remotable="true" TypeID="Windows!Microsoft.Windows.TimedScript.TwoStateMonitorType" Enabled="true">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.SystemCenter.VirtualMachineManager.OpsMgrConsoleMonitor.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="OpsManagerConsoleIsNotInstalled" MonitorTypeStateID="Error" HealthState="Error"/>
<OperationalState ID="OpsManagerConsoleInstalled" MonitorTypeStateID="Success" HealthState="Success"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>7200</IntervalSeconds>
<SyncTime/>
<ScriptName>OpsManagerConsoleMonitorScript.vbs</ScriptName>
<Arguments/>
<ScriptBody><Script>' Copyright (c) Microsoft Corporation. All rights reserved.
' VBScript source code
' OpsManagerConsoleMonitorScript.vbs
Option Explicit

SetLocale("en-us")

' This Script gets the Registry value UIVersion from
' HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft Operations Manager\3.0\Setup

Dim oAPI, oBag, strComputer, oReg, strValue
Const HKEY_LOCAL_MACHINE = &amp;H80000002
Set oAPI = CreateObject("MOM.ScriptAPI")
Set oBag = oAPI.CreatePropertyBag()
Set oReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\default:StdRegProv")

Call oReg.GetStringValue(HKEY_LOCAL_MACHINE, "SOFTWARE\Microsoft\Microsoft Operations Manager\3.0\Setup", "UIVersion", strValue)
If isnull(strValue) Then
Call oBag.AddValue("Operations Manager Console Installed", "NotInstalled")
Else
Call oBag.AddValue("Operations Manager Console Installed", "Installed")
Call oBag.AddValue("Version", strValue)
End if

Call oAPI.Return(oBag) </Script></ScriptBody>
<TimeoutSeconds>300</TimeoutSeconds>
<ErrorExpression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='Operations Manager Console Installed']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">NotInstalled</Value>
</ValueExpression>
</SimpleExpression>
</ErrorExpression>
<SuccessExpression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='Operations Manager Console Installed']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Installed</Value>
</ValueExpression>
</SimpleExpression>
</SuccessExpression>
</Configuration>
</UnitMonitor>