Integrate OpManager with OpsGenie

Integrating OpsGenie with OpManager brings a powerful synergy to your IT operations and event management strategy. This enables advanced alerting capabilities, ensuring that critical issues are detected and communicated promptly. By combining these strengths, it helps organizations enhance operational efficiency, improve event resolution, and maintain high service reliability.

OpManager can be integrated with OpsGenie using the custom integration option.

Steps to perform in OpsGenie

  1. Activate Integration

Steps to perform in OpManager

  1. To Add an Event
  2. To Add Notes to an Event
  3. To close an Event
  4. Associate a notification profile

Steps to perform in OpsGenie

a. Activate Integration in OpsGenie

  1. Login to OpsGenie
  2. To activate integration in OpsGenie, login here.

    opsgenie-login

  3. Create a Team
    Navigate to Teams > Add Team to create a new team. Once the team is created, you will be redirected to the team’s page.
  4. opsgenie-team

  5. Add an Integration
    Click on Integrations > Add Integration to enable a new integration. A list of available integrations will be displayed.
  6. opsgenie-integration

  7. Select API Integration
    Choose the "API" integration to perform REST operations. Both free and paid options are available—select based on your requirements. Copy the API key.
  8. opsgenie-api

  9. Enable Access
    Verify if access is enabled. If not, click Edit and enable access. Once created, you will receive integration settings, including the API key and other configuration details.
  10. opsgenie-access

  11. Activate the Integration
    Click Turn on Integration to activate it.
  12. opsgenie-activation

  13. Click Save.

Steps to perform in OpManager

a. Add an Event in OpManager

  • In OpManager, navigate to Settings > Integrations > Custom Integration.
  • Enter the Integration Name and add a Decscription.
  • Set up integration parameters
    • Integration Type: Event Management
    • API Endpoint: https://api.opsgenie.com/v2/alerts
    • Method: POST
    • Headers: Authorization: GenieKey eb2*****************************f56 {copied API Key from opsgenie}
    • Payload Type: JSON
    • Data Type: Raw
    • Body Content:
    {
      "message": "$message",
      "details": {
      "displayname": "$displayName",
      "Severity": "$stringseverity",
      "Category": "$category"
      }
    }

    opsgenie-create-event

    • Click "Test Action" to check the configuration. Once successful, select "Manage Events" to fetch the event ID. You will get a 'request_id', which can be used to acknowledge and close the particular event on the OpsGenie side.

    opsgenie-manage-event

    b. Add Notes to an Event in OpManager

    • API: https://api.opsgenie.com/v2/alerts/$requestId/notes
    • Method: POST
    • Headers: Authorization:GenieKey eb2*****************************f56 {copied API Key from opsgenie}
    • Payload Type: JSON
    • Data Type: Raw
    • Body Content:
    {
      "message": "$message",
      "details": {
      "displayname": "$displayName",
      "Severity": "$stringseverity",
      "Category": "$category"
      }
    }

    opsgenie-update-event

    c. Close an Event in OpManager

    • API: https://api.opsgenie.com/v2/alerts/$requestId/close
    • Method: POST
    • Headers: Authorization:GenieKey eb2*****************************f56 {copied API Key from opsgenie}
    • Payload Type: JSON
    • Data Type: Raw
    • Body Content:
    {
      "message": "$message",
      "details": {
      "displayname": "$displayName",
      "Severity": "$stringseverity",
      "Category": "$category"
      }
    }

    opsgenie-close-event

    • Click Save to finalize the configuration.
    • Click Configure Now under "Associate Notification Profile".
    • associate-notification-profile-in-opmanager

    • Select Custom_Integration and choose the profile named "OpsGenie".
    • Learn more about configuring criteria, devices, and time window in notification profiles here.
    • Click Save.

    Refer to the steps below to configure multiple notification profiles.

    Associate a Notification Profile

    Follow the steps below to configure the notification profile:

    1. Go to Settings > Notifications > Notification Profiles > Add
    2. Select Custom_Integration and choose the profile named "OpsGenie".
    3. opsmanager-opsgenie-integration

    4. Learn more about configuring criteria, devices, and time window in notification profiles here.
    5. Click Save.
    Refer to the OpsGenie Alert API documentation to check for Alerts API parameters.

    Verifying the Integration

    Trigger a real-time alert in OpManager. Then, log in to your OpsGenie interface to verify the alert has been logged as an event.

    Know more about the integrations offered by OpManager

    Know more about dynamic variables used in request body

Thank you for your feedback!

Was this content helpful?

We are sorry. Help us improve this page.

How can we improve this page?
Do you need assistance with this topic?
By clicking "Submit", you agree to processing of personal data according to the Privacy Policy.