Integrate OpManager with Zendesk

By integrating Zendesk with OpManager, your IT team gains a powerful advantage in handling operations and incident response. Zendesk provides a complete suite of cloud solution that equips organizations to handle customer inquiries, create automated processes, and improve team collaboration. By combining these strengths, you can automatically convert critical alerts into support tickets for timely resolution.

OpManager can be integrated with Zendesk using the Custom Integration option.

Steps to perform in Zendesk

  1. Login to your Account

Steps to perform in OpManager

  1. Create an Incident
  2. Update an Incident
  3. Close an Incident
  4. Associate a Notification Profile

Steps to perform in Zendesk

Login to your Account

  1. Login to Zendesk
  2. Navigate to Admin → Apps and Integrations → API → API Configuration.
  3. Select "Allow API token access" and click Save.

zendesk-login

  1. In the same page (on the left side pane) click on API tokens -> Add. Copy the Token before closing the tab.

Steps to Perform in OpManager

Navigate to Settings → General Settings → Integrations → New Custom Integration

Create an Incident

  1. Fill in the integration details as follows:
    1. API : https://{subdomain}.zendesk.com/api/v2/tickets.json
      1. subdomain : Replace this with your Zendesk unique identifier
    2. Integration Type : Incident Management
    3. Method Type : POST
    4. Headers : 'Content-Type' : application/json, 'Authorization' : Basic {Base64 encoded value of "login_email/token:{APIKEY}"}
      1. login_email : Your Zendesk Admin E-mail
      2. {APIKEY} : Your Zendesk API token
      3. token : Do not change this literal
    5. Payload Type : JSON
    6. Data Type : Raw
    7. API Key : Paste the API copied from Zendesk
    8. Body Content :
    {
       "ticket": {
          "comment": {
             "body": "$entity - $category",
          },
          "priority": "Urgent",
          "subject": "$message"
       }
    }

notification-profile

  1. To verify your setup, click Test Action to confirm the configuration is correct. After a successful test, go to 'Manage Incidents' to retrieve the Incident ID. This will generate a ticket_id, which you can use to update or close the corresponding incident in Zendesk

notification-profile

Update an Incident

  1. Fill in the integration details as follows:
    1. API : https://{subdomain}.zendesk.com/api/v2/tickets/$.ticket.id.json
      1. subdomain : Replace this with your Zendesk unique identifier
    2. Method Type : PUT
    3. Headers : 'Content-Type' : application/json, 'Authorization' :Basic {Base64 encoded value of "login_email/token:{APIKEY}"}
    4. Payload Type : JSON
    5. Data Type : Raw
    6. Body Content :
    {
       "ticket": {
          "comment": {
             "body": "$entity - $category",
          },
          "priority": "Urgent",
          "subject": "$message"
       }
    }

notification-profile

Close an Incident

  1. Fill in the integration details as follows:
    1. API : https://{subdomain}.zendesk.com/api/v2/tickets/$.ticket.id.json
      1. subdomain : Replace this with your Zendesk unique identifier
    2. Method Type : DELETE
    3. Headers : 'Content-Type' : application/json, 'Authorization' : Basic {Base64 encoded value of "login_email/token:{APIKEY}"}

notification-profile

  1. Click Save to finalize the configuration.
  2. Click on Configure Now to set up the Notification Profile

configure notification profile

Associate a Notification Profile

  1. After clicking "Configure Now", you will be redirected to the Notification Profile page.
  2. Click on Custom Integration.
  3. Select Zendesk from the list.

Zendesk Configuration

  1. Learn more about configuring criteria, devices, and time window in notification profiles here.
  2. Click on Save to finalize the integration.

Verifying the Integration

Trigger a test alert from OpManager and check your Zendesk dashboard to confirm that a ticket has been created successfully.

Zendesk Configuration

Know more about OpManager integrations

Know more about dynamic variables used in request bodies

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.