SCOM & Slack integration

author-6204 160 Reputation points
2023-05-21T16:35:38.6866667+00:00

I want to integrate slack and SCOM. I have a PowerShell script that will post notifications to slack. But I can't find a way to create a custom rule to generate an error (e.g. I want to create a rule that will trigger when any machine goes down or CPU utilization drops). When this rule is broken, my PowerShell script for slack notifications will be triggered. Is this possible in SCOM?

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

Accepted answer
  1. Rephies-4542 296 Reputation points
    2023-05-21T16:56:19.2666667+00:00

    You can refer to the following steps:

    1. Create a new command channel in SCOM
    2. Attach a script that will process the alert output (logic that transforms the data and sends it to Slack)
    3. Create subscriptions for monitors and rules to be delivered to deliver the command channel to the subscription

    Reference: https://blogs.technet.microsoft.com/fesiro/2012/11/26/how-to-configure-command-notification-in-scom-2012-with-powershell-script/

    If you have Orchestrator in your System Center infrastructure, you can trigger runbooks by SCOM alerts. It's a great way to make the process more manageable. You can invoke the script in the runbook.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.