question

kannan-9247 avatar image
0 Votes"
kannan-9247 asked kannan-9247 commented

SCOm - AD replication monitor failed

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.

windows-active-directorymsc-operations-manager
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

AlexZhu-MSFT avatar image
1 Vote"
AlexZhu-MSFT answered kannan-9247 commented

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.




· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,

How's everything going? Have we figured out this problem? Or is there any other assistance that we can provide?

Regards,

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

0 Votes 0 ·

Hi, Thanks for your reply. I am out of the office. I will try this tomorrow and update the status here.

0 Votes 0 ·