SCOM: How do I monitor external DNS resolution?

Pauciloquent 71 Reputation points
2022-04-18T14:52:23.813+00:00

Hi Folks

I am wondering if External resolution monitor has been removed from DNS MP? I need to create a monitor or rule that runs on the DNS server to query an address frequently. If 3 queries are failed, generate an alert.

Should I write a Powershell script and create a script monitor? In this case, please point me to the document where I can learn about powershell monitoring.

Thanks in advance.

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,417 questions
0 comments No comments
{count} votes

Accepted answer
  1. SChalakov 10,261 Reputation points MVP
    2022-04-28T08:16:01.417+00:00

    Hi @Pauciloquent ,

    I didn't have the chance to test the script itself, but if your are collecting the proper data in your property bags (see belolw hpw yyou can test thiss - the artcle i pasted), then the steps that you need to do to make the script work, are descriibed here (an article I wrote about how to integrate a PowerShell script with SCOM) and run it on your SCOM management server:

    Monitoring Active Directory User Account Expiration using SCOM and PowerShell (Step by Step Guide)
    https://www.pohn.ch/monitor-active-directory-user-account-expiration-using-scom-and-powershell-step-by-step-guide/

    You will see in the article how to test you script and make sure it returns the right proerty bags and also how to integrate in SCOM. It has also nice screennshots and lots of details. Please post back if you need further help.

    ---
    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Stoyan Chalakov


2 additional answers

Sort by: Most helpful
  1. SChalakov 10,261 Reputation points MVP
    2022-04-19T05:59:46.03+00:00

    Hi @Pauciloquent ,

    you have a custom use case, so I would also use PowerShell if I had to solve this same challenge. What you need is:

    • Cookdown's PowerShell MP, so that you can build a PowerShell based monitor.

    PowerShell Authoring
    https://www.cookdown.com/scom-essentials/powershell-authoring

    The link contains also a refernce to a video, where you can see how to create Property Bags and pass their values to SCOM.

    • You can use the following cmdlets to build your script, depending on the particular use case and requirements:

    Resolve-DnsName
    https://learn.microsoft.com/en-us/powershell/module/dnsclient/resolve-dnsname?view=windowsserver2022-ps

    Here you can lookup some examples:

    Resolve-DnsName: Resolving DNS Records with PowerShell
    https://adamtheautomator.com/resolve-dnsname/

    Don't hesitate to ask if you have further questions.

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Stoyan Chalakov

    1 person found this answer helpful.

  2. Pauciloquent 71 Reputation points
    2022-04-19T03:16:10.247+00:00

    Hi @CyrAz @Simon Ren-MSFT @SChalakov

    Need your kind attention to my question :)

    0 comments No comments