System Center 2019+ Virtual Machine Manager Operations Manager Console

Microsoft.SystemCenter.VirtualMachineManager.OpsMgrConsoleMonitor (UnitMonitor)

Monitors the presence of the Operations Manager Operations console

Knowledge Base article:

Summary

Operations Manager detected a Virtual Machine Manager server that does not have the Operations Manager Console installed on it. In order for Operations Manager integration to function properly, the Operations Manager Console must be installed on the VMM server.

Causes

The Operations Manager Console is not installed on the VMM server.

Resolutions

To enable Operations Manager integration to function properly, install the Operations Manager console on the Virtual Machine Manager server.

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 Console not installed
The Operations Manager Operations console is not installed on a computer. Computer name: {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>