> For the complete documentation index, see [llms.txt](https://docs.ilert.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ilert.com/integrations/inbound-integrations/opmanager.md).

# OpManager Integration

Set up an OpManager integration to send alerts to ilert and automate incident workflows.

Integrating OpManager with ilert enables automated alerting and incident response by sending network and infrastructure alerts from OpManager to ilert. This integration helps streamline your IT operations and reduces mean time to respond (MTTR) by combining OpManager's monitoring capabilities with ilert's advanced alert management and escalation features.

## In ilert: Create a OpManager alert source

1. Go to **Alerting** → **Alert sources** and click **Create new alert source**.
2. Search for **OpManager**, click its tile, and click **Next**.
3. Give your alert source a name, optionally assign teams, and click **Next**.
4. Choose who gets notified: select **Use existing escalation policy** and pick a policy, or **Generate new escalation policy** to start with a basic one that notifies you first. Click **Next**.

   <figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2Fgit-blob-8a281bf3931f5a1a531951ce97984d50989dd875%2Falert-source-escalation-step.png?alt=media" alt="The escalation step of the ilert alert source wizard, headed Who should be notified about alerts, with an escalation policy selected and a preview of its escalation rules below."><figcaption><p>Pick an existing escalation policy, or generate a basic one without leaving the wizard.</p></figcaption></figure>
5. Select **Default grouping** and click **Continue setup**. It groups events by the alert key the integration sets; the other [grouping options](/alerting/configure-alerting/alert-sources.md#event-grouping) are easier to judge once events are arriving.
6. The next page shows more settings, such as notification priority and alert templates. Click **Finish setup** for now; you can change them later.
7. On the final page, ilert shows the integration key and URL for this alert source. You will need them later in this guide.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2Fgit-blob-e1f39bb8af5f0067e66e2a48ef81954d864c2de0%2Falert-source-opmanager.png?alt=media" alt="The Settings tab of a OpManager alert source in ilert, showing the integration type, the masked integration key, and the OpManager URL."><figcaption></figcaption></figure>

## In OpManager: Creating a custom integration

1. On the top bar, navigate to Settings -> General Settings -> Integrations.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2F0lvcWT9pKUltpr4qfucY%2F1.png?alt=media&amp;token=49b4ac98-6cb7-48fe-9fb3-8f69ed53a5fa" alt=""><figcaption></figcaption></figure>

2. Now click New Custom Integration

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FU5VykrJjbrcMpwoBOZNK%2F2.png?alt=media&amp;token=030af06d-4ba0-4ef9-8c2b-6c3e099f2102" alt=""><figcaption></figcaption></figure>

3. Name the integration as **ilert Integration** and add a description.
4. In Integration Type, select **Event Management**.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FX0UcRn6qKtLA5wGnm7S5%2F3.png?alt=media&amp;token=b5cb3ff4-83a8-447c-b304-644663813261" alt=""><figcaption></figcaption></figure>

5. Enter the following details under **Create Event** to create an event in OpManager:

* **Method Type:** POST
* **Method URL:** previously generated integration URL
* **Data Type:** Raw
* **Payload Type:** JSON
* **Body Content:**

```json
{
    "eventType": "ALERT",
    "summary": "$displayName - $stringseverity",
    "details": "$message",
    "priority": "HIGH",
    "alertKey":"$entity"
}
```

6. Click **Test action** to verify the connection and check the **Manage Event** box.
7. In Fetch Event id, enter **`$id`**.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FkkVo9ARdG7rVc43i5xyV%2F4.png?alt=media&amp;token=2d99f489-5d50-4462-82ef-6ee19124a44a" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FZMvhfdmRUljh0IbsvB15%2F5.png?alt=media&amp;token=54d211d4-e6a4-4a9d-ba71-9ed0c24775f6" alt=""><figcaption></figcaption></figure>

8. To send update events, enter the following details:

* **Method Type:** POST
* **Method URL:** previously generated integration URL
* **Data Type:** Raw
* **Payload Type:** JSON
* **Body Content:**

```json
{
   "eventType": "ALERT",
   "summary": "$displayName - $stringseverity",
   "details": "$message",
   "priority": "HIGH",
   "alertKey":"$entity"
}
```

8. Enter the following details to send an resolution event to ilert:

* **Method Type:** POST
* **Method URL:** previously generated integration URL
* **Data Type:** Raw
* **Payload Type:** JSON
* **Body Content:**

```json
{
   "eventType": "RESOLVE",
   "summary": "$displayName - $stringseverity",
   "details": "$message",
   "priority": "HIGH",
   "alertKey":"$entity"
}
```

## FAQ

#### **Will alerts in ilert be resolved automatically?**

Yes, as soon as a OpManager sends an alert event with field `eventType` value set to `RESOLVE`, corresponding alert in ilert will be resolved.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.ilert.com/integrations/inbound-integrations/opmanager.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
