OpsGenie Deprecated
Deprecated. Use the OpsGenie v3 integration instead
Messaging and Conferencing · OpsGenie
Details
| ID | OpsGenie |
|---|---|
| Provider | Atlassian |
| Category | Messaging and Conferencing |
| From Version | 5.0.0 |
| Supported Modules | Agentix XSIAM |
README
OpsGenie is an alerting and on-call management solution for dev & ops teams. It provides tools needed to design actionable alerts, manage on-call schedules & escalations, and ensure that the right people are notified at the right time, using multiple notification methods.
The OpsGenie-XSOAR integration allows querying specific on-call schedules and determining the right resource of who is currently (or in future time) on call.
To set up OpsGenie to work with Cortex XSOAR:
- From main OpsGenie screen, go to the Integrations page, and select to add API (first box).
- In the new API integration, do the following:
- Enter name: Demisto
- Copy the API Key presented in the page to use for the Demisto set up below.
- Make sure Enabled checkbox is marked.
- You can check the Restrict Access and Limit to Read Only check boxes as well (not mandatory)
- Click on Save Integration
To set up the integration on Cortex XSOAR:
- Go to ‘Settings > Integrations > Servers & Services’
- Locate the OpsGenie integration by searching for it using the search box on the top of the page.
- Click ‘Add instance’ to create and configure a new integration. You should configure the following settings:
Name: A textual name for the integration instance.
Base URL: The base OpsGenie service URL. The default value should be used (https://api.opsgenie.com/v2), unless otherwise instructed by Cortex XSOAR.
API Key: The API Key acquired from the OpsGenie interface in the previous step.
Use system proxy configuration: Check this box in case there is a proxy server configures on the platform.
Cortex XSOAR engine: If relevant, select the engine that acts as a proxy to the server. Engines are used when you need to access a remote network segments and there are network devices such as proxies, firewalls, etc. that prevent the Cortex XSOAR server from accessing the remote networks.
For more information on Cortex XSOAR engines see:
Cortex XSOAR 6.13 - Engines
Cortex XSOAR 8 Cloud- Engines
Cortex XSOAR 8.7 On-prem - Engines
Require users to enter additional password: Select whether you’d like an additional step where users are required to authenticate themselves with a password.
- Press the ‘Test’ button to validate connection.
- After completing the test successfully, press the ‘Done’ button.
Fetched incidents data:
This integration does not fetch incidents
Use-cases:
-
Assigning an analyst based on the current on-call schedule
When an incident enters Cortex XSOAR, a playbook task can get the current on-call analyst, based on the on-call schedule.
This can be done by using the opsgenie-get-on-call command, using the SOC analysts rotation schedule in OpsGenie. -
Setting handover path based on future on-call rotation
As part of the incident playbook, the next shift analyst can also be queries for heads-up notification if needed, using the opsgenie-get-on-call command, using the schedule name, and the date to query based upon
Commands:
-
opsgenie-get-on-call <schedule> [<date>] - Get current on-call users of a given Schedule.
The Schedule name is used to query for the specific on-call. The Date can be provided to check future on-call assignments. - opsgenie-get-schedule-timeline <schedule> - Get the schedule timeline information of the given schedule name.
- opsgenie-get-schedules - Get all schedules listed in the system.
- opsgenie-get-user <user> - Get user information based on the given user ID (email)
Example of commands:
- !opsgenie-get-on-call schedule="OnCAll"
- !opsgenie-get-on-call schedule="OnCAll" date=2018-01-01
- !opsgenie-get-user email@company.com
Example of commands with outputs:
- !opsgenie-get-on-call schedule="SOC"
War room output:
|
OpsGenie On-Call Schedule SOC |
Context output:
|
OnCall:[] 1 item |
Raw output:
|
root:[] 1 item |
-
!opsgenie-get-on-call schedule="SOC" date="2018-01-01"
War room output:
|
OpsGenie On-Call Schedule SOC |
Context output:
|
OnCall:[] 1 item |
Raw output:
|
root:[] 1 item |
- !opsgenie-get-user userID="john@company.com"
War room output:
|
OpsGenie User Info |
Context output:
|
None |
Raw output:
|
root:{} 10 items |
Troubleshooting
- Make sure to have the web-proxy open to the OpsGenie API URL (https://api.opsgenie.com/v2)
- Make sure API Key is enabled in the OpsGenie interface, and it is copies correctly
- Make sure API Key is created with a user that has access to the relevant on call schedules.
Configuration parameters
baseURL— Base URL (required)apiKey— API Key (required)proxy— Use system proxy settings
Commands (4)
-
opsgenie-get-on-callGet current on-call users for a given Schedule
-
opsgenie-get-schedule-timelineGet schedule timeline information
-
opsgenie-get-schedulesGet all schedules
-
opsgenie-get-userGet user information
commonfields: id: OpsGenie version: -1 name: OpsGenie display: OpsGenie (Deprecated) deprecated: true category: Messaging and Conferencing provider: Atlassian description: Deprecated. Use the OpsGenie v3 integration instead configuration: - display: Base URL name: baseURL defaultvalue: https://api.opsgenie.com/v2 type: 0 required: true - display: API Key name: apiKey defaultvalue: "" type: 4 required: true - display: Use system proxy settings name: proxy defaultvalue: "" type: 8 required: false script: script: '' type: javascript commands: - name: opsgenie-get-on-call arguments: - name: schedule required: true description: Schedule Name - name: date description: Date to check the on-call schedule outputs: - contextPath: OpsGenie.Schedule description: Schedule name - contextPath: OpsGenie.OnCall.email description: Email of current on-call user - contextPath: OpsGenie.OnCall.name description: Name of current on-call user description: Get current on-call users for a given Schedule - name: opsgenie-get-user arguments: - name: userID required: true default: true description: User identifier (i.e. email) description: Get user information - name: opsgenie-get-schedules arguments: [] description: Get all schedules - name: opsgenie-get-schedule-timeline arguments: - name: schedule required: true default: true description: Schedule name description: Get schedule timeline information tests: - no test fromversion: 5.0.0