Skip to main content

Microsoft SCOM (Service Center Operations Manager) integration

You can configure the Service Center Operations Manager (SCOM) webhook to post notifications to the Moogsoft Cloud Events API when events of interest occur.

Before you begin

This integration was validated with Service Center Operations Manager on January 12, 2021.

Before you start to set up your integration, make sure:

  • You have an active SCOM account.

  • You have the necessary permissions to create alerts and notifications channels in SCOM.

  • SCOM can make requests to external endpoints over port 443. This is the default.

  • You have downloaded the Send Alerts to Moogsoft script.

    NOTE: Right-click the link and select "Save Link As" from the menu to download the file. Save the file as sendAlertsToMoogsoft.ps1.

  • You have created an API key and have access to a copy of it.

  • You have copied the Events Endpoint URL from Integrations > Ingestion Services > Events API in Moogsoft Cloud.

Edit the Send Alerts to Moogsoft script

To prepare the Send Alerts to Moogsoft Script, do the following.

  1. Using a text editor (like Notepad), open the sendAlertsToMoogsoft.ps1 script file you downloaded (see previous section for download information).

  2. Replace $ApiURL with the Events Endpoint URL under Integrations > Ingestion Services > Events API.

    Events_URL.png
  3. Replace $ApiKey with your API key.

  4. Save the script file to C:\Moogsoft.

Set up notifications in SCOM

To set up a new notification in SCOM, do the following:

  1. Log in to SCOM.

  2. Go to the Administration section.

  3. Go to Notifications > Channels.

  4. Click New > Command.

  5. For Channel Name, enter Moogsoft Notification and then click Next.

  6. Enter the following values:

    1. Full path of command file: C:\Windows\System32\windowspowershell\v1.0\powershell.exe

    2. Command line parameters::

      "c:\Moogsoft\sendAlertsToMoogsoft.ps1" '$Data[Default='Not Present']/Context/DataItem/ManagedEntityPath$\$Data[Default='Not Present']/Context/DataItem/ManagedEntityDisplayName$' '$Data/Context/DataItem/AlertName$' '$Data[Default='Not Present']/Context/DataItem/AlertDescription$' '$Data[Default='Not Present']/Context/DataItem/Severity$' '$Data[Default='Not Present']/Context/DataItem/Category$' '$Data[Default='Not Present']/Context/DataItem/LastModifiedLocal$' '$Data[Default='Not Present']/Context/DataItem/AlertId$' '$Data[Default='Not Present']/Context/DataItem/ResolutionStateName$'
    3. Startup folder for the command line: C:\Windows\System32\windowspowershell\v1.0\

  7. Click Finish.

Set up subscriptions in SCOM

To set up a new subscription in SCOM, do the following:

  1. Go to the Administration section.

  2. Click Subscriptions.

  3. Click New.

  4. For Subscription Name, enter Moogsoft Notification and then click Next.

  5. Set Scope based on your business use case and then click Next.

  6. Set Criteria based on your business use case and then click Next.

  7. Under the Subscribers section, click Add and add at least one subscriber to the subscription (required). Then click Next.

  8. In the Channels section, click Add.

  9. Select Moogsoft Notification from the list of available channels.

  10. Click Add.

You have now configured Service Center Operations Manager (SCOM) to notify Moogsoft Cloud when new alerts are created.