SCOm - AD replication monitor failed

kannan 41 Reputation points
2021-10-21T18:19:14.05+00:00

We are running on SCOm 2012 R2 product and monitoring all Windows domain controllers. lately, we started to see the below errors for DCs. Can someone please help advise here?

ErrorString Failed to connect to registry hive HKLM. Verify that the agent has access to view the registry.

Operations Manager
Operations Manager
A family of System Center products that provide infrastructure monitoring, help ensure the predictable performance and availability of vital applications, and offer comprehensive monitoring for datacenters and cloud, both private and public.
1,413 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,857 questions
0 comments No comments
{count} votes

Accepted answer
  1. AlexZhu-MSFT 5,551 Reputation points Microsoft Vendor
    2021-10-22T01:36:03.833+00:00

    Hi,

    For this issue, we can simulate the problem by running the VB script (with the same user context as the monitors runs it) manually to check if the registry hive is accessible for further trouble-shooting. Below is just a sample for your reference:

      Const HKEY_CURRENT_USER = &H80000001  
      const HKEY_LOCAL_MACHINE = &H80000002  
      Dim strComputer  
      strComputer = "."  
      
      On Error Resume Next  
      Dim oReg, strKeyPath, strValueName, dwValue  
      Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default:StdRegProv")  
      strKeyPath = "System\CurrentControlSet\Services\NTDS\Parameters"  
      strValueName = "Strict Replication Consistency"  
      oReg.GetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,dwValue  
      WScript.Echo "Strict Replication Consistency: " & dwValue  
        
      Dim strError  
      If (Err.Number <> 0) Then  
        strError = "Failed to connect to registry hive HKLM." & vbcrlf   
        strError = strError & "Verify that the agent has access to view the registry."  
        WScript.Echo strerror  
      End If  
      
    

    142671-scom-ad-replication.png

    Alex
    If the response is helpful, please click "Accept Answer" and upvote it.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful