Splunk AppDynamics

How do I setup an email alert for a particular server when the SQL Server & SQL Agent services is down?

aina_rahman
New Member

Hi,

What are the steps for setting up an email alert when SQL Server and SQL Agent services is down?

Labels (1)
Tags (3)
0 Karma

MARTINA_MELIAN1
Path Finder

Hi @aina.rahman ,

Thank you for posting on community. To monitor the SQL Server and SQL Agent services and set up email alerts when they are down,
you can follow these steps:

  1. Enable the Email Server if not yet set up.
     steps to  Enable the Email Server

  2. Set up Related Health Rules, Policies, and Actions to Monitor Services

    for SQL Server Monitoring, utilize AppDynamics Database Agent:
    Install Database Agent
    Monitor Databases and Database Servers
    Steps:
    Set Health Rule: On Controller > Databases > Alert & Respond, configure a health rule. Use the metric DB|KPI|Database Availability to monitor whether the SQL Server is running.

    image.png
    image.png

    Set Policies: Policies: On Controller > Alert & Respond > Policies, create a new policy. Set the Trigger, Health Rule Scope, and Actions. Add action and configure email to specify where to send alert emails.

    image.png

    image.png

    image.png

    By following these steps, I received email alerts when health rules are violated (SQL server down/SQL server stopped).


    for SQL Server Agent Monitoring, utilize AppDynamics Machine Agent. AppDynamics Machine Agent can monitor processes on server.
    Machine Agent
    Server Process Metrics

    StepsSet up health rule, policy, and action similarly to the database agent above. Notes: When setting up the health rules, under Affected Entities, select Custom Health Rule Type to set process metrics such as memory usage or count in the Critical/Warning area.

    image.png

    By following these steps, I received email alerts when the SQL Agent service is down.

Other Monitoring Alternatives

Below are some possible alternatives to monitor your windows services status:

  1. .NET Agent Extension
    .NET Agent extension to monitor windows services. Reference: .NET Agent Extension Documentation

  2. Write your own Machine Agent Extension
    Machine Agent for custom monitoring of services. Reference: Machine Agent Documentation

Hope this help.

Regards,

Martina

Get Updates on the Splunk Community!

Fall Into Learning with New Splunk Education Courses

Every month, Splunk Education releases new courses to help you branch out, strengthen your data science roots, ...

Super Optimize your Splunk Stats Searches: Unlocking the Power of tstats, TERM, and ...

By Martin Hettervik, Senior Consultant and Team Leader at Accelerate at Iver, Splunk MVPThe stats command is ...

How Splunk Observability Cloud Prevented a Major Payment Crisis in Minutes

Your bank's payment processing system is humming along during a busy afternoon, handling millions in hourly ...