Консоль Operations Manager (System Center 2012 Virtual Machine Manager)

Microsoft.SystemCenter.VirtualMachineManager.2012.OpsMgrConsoleMonitor (UnitMonitor)

Отслеживает наличие консоли управления Operations Manager

Knowledge Base article:

Сводка

Operations Manager обнаружил сервер Virtual Machine Manager, на котором не установлена консоль Operations Manager. Для корректной интеграции средства Operations Manager на сервер VMM следует установить консоль Operations Manager.

Причины

На сервере VMM не установлена консоль Operations Manager.

Устранение неполадок

Для обеспечения корректной интеграции средства Operations Manager установите на сервер Virtual Machine Manager консоль Operations Manager.

Element properties:

TargetMicrosoft.SystemCenter.VirtualMachineManager.2012.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 не установлена
Консоль управления Operations Manager не установлена на компьютере. Имя компьютера: {0}
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SystemCenter.VirtualMachineManager.2012.OpsMgrConsoleMonitor" Accessibility="Public" Target="VMM2012Discovery!Microsoft.SystemCenter.VirtualMachineManager.2012.VMMManagementServer" ParentMonitorID="SystemHealth!System.Health.AvailabilityState" Remotable="true" TypeID="Windows!Microsoft.Windows.TimedScript.TwoStateMonitorType" Enabled="true">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.SystemCenter.VirtualMachineManager.2012.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>