question

shankar431-9012 avatar image
0 Votes"
shankar431-9012 asked ·

How can we monitor a Registry-key with SCOM for Azure server

Hi All,

Kindly assist us how can we monitor the below Registry-key with SCOM for Azure server.
Server:Servername.com
Registry-key to check: HKLM:\SOFTWARE\XXXXXX\NumberOfErrorsToday\Number
Value >25
Resolver group: XYZ

Regards,
Ravi shankar

msc-operations-manager-generalmsc-operations-manager-authoringmsc-operations-manager-deploymentmsc-operations-manager-mp
10 |1000 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.

CyrilAzoulay avatar image
0 Votes"
CyrilAzoulay answered ·
· 1 · Share
10 |1000 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 CyrilAzoulay,

Iam new to SCOM, i have gone through the first link about using the MP to monitor the registry i mentioned, iam not sure how exactly i can use this by implementing it for my request.
Can you explain me in detail, it will be really grateful.

Regards,
Ravi shankar

0 Votes 0 ·
Crystal-MSFT avatar image
0 Votes"
Crystal-MSFT answered ·

@shankar431-9012, To install SCOM agent on Azure VMs, Here is an article for the reference:
https://whyazure.in/manage-azure-vms-with-scom-server-2016/
Note Non-Microsoft link, just for the reference.

After that, we can import the MP which CyrilAzoulay provided. Then we can change registry value and desired value by changing the configuration of the monitor "Reg Value".
56482-image.png

Hope it can help.


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



image.png (72.2 KiB)
· 1 · Share
10 |1000 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.

@shankar431-9012, Hope things are going well. If there's anything else we can help, feel free to let us know.

0 Votes 0 ·
shankar431-9012 avatar image
0 Votes"
shankar431-9012 answered ·

Hi Crystal,

Thank you for supporting me as iam new to SCOM, But still iam confused, Do we need to change the path anywhere in the management pack file, as my monitoring requirement is to monitor the Registry-key: HKLM:\SOFTWARE\XXXXXX\NumberOfErrorsToday\Number .
And alert should trigger if the Value is greater than 25.

Kindly assist me on this.

Regards,
Ravi Shankar

· 1 · Share
10 |1000 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.

@shankar431-9012, Thanks for the reply. From your description, I notice the trigger of the value is greater than 25. For the previous MP, it can only compare if the value is the same as the value we configured. So this may not meet our request.

I have a thought for this. Here is for the reference:
1. Create a script to query our Registry key value.
https://stackoverflow.com/questions/15511809/how-do-i-get-the-value-of-a-registry-key-and-only-the-value-using-powershell
Note: Non-microsoft link, just for the reference.
2. Create a custom monitor with the Powershell script and set the expression as great than 25. here is an article for the reference:
https://blog.ctglobalservices.com/powershell/clm/example-of-setting-up-a-custom-monitor-in-scom-with-a-powershell-script-monitor-nic-teams-in-scom/

Hope it can help.

0 Votes 0 ·