# Problems sent to Opsgenie seems to not autoclose

**URL:** <https://community.dynatrace.com/t/problems-sent-to-opsgenie-seems-to-not-autoclose/34591>\
**Category:** Alerting\
**Tags:** problem-notification, problems-classic\
**Created:** [March 23, 2022, 1:48pm UTC](https://community.dynatrace.com/t/problems-sent-to-opsgenie-seems-to-not-autoclose/34591 "2022-03-23T13:48:18Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![AymericM](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/aymericm/32/38607_2.png) [@AymericM](https://community.dynatrace.com/u/AymericM)\
**Post date:** [March 23, 2022, 1:48pm UTC](https://community.dynatrace.com/t/problems-sent-to-opsgenie-seems-to-not-autoclose/34591/1 "2022-03-23T13:48:18Z")

</div>

In the documentation it is stated :

Opsgenie incidents are automatically created when problems are detected and closed when problems are resolved.

But from our experience only the creation part is working, when the problem is marked as resolved in Dynatrace console it remains open in OpsGenie.

I don’t see any setting in the configuration of the problem notification to activate or deactivate the sending of the close event.

Is it still working ?

---

<div class="post-metadata">

**Author:** ![Thps44](https://avatars.discourse-cdn.com/v4/letter/t/e8c25b/32.png) [@Thps44](https://community.dynatrace.com/u/Thps44)\
**Post date:** [March 24, 2022, 4:34pm UTC](https://community.dynatrace.com/t/problems-sent-to-opsgenie-seems-to-not-autoclose/34591/2 "2022-03-24T16:34:58Z")

</div>

I am having this exact same problem just started in our system recently as well. I’ve combed through all the setting and even updated the OpsGenie integration to V2 but still alerts are not auto closing. Hopefully a resolution can be found, I will keep looking on my end.

---

<div class="post-metadata">

**Author:** ![hakanozanlagan](https://avatars.discourse-cdn.com/v4/letter/h/a183cd/32.png) [@hakanozanlagan](https://community.dynatrace.com/u/hakanozanlagan)\
**Post date:** [March 29, 2022, 2:49pm UTC](https://community.dynatrace.com/t/problems-sent-to-opsgenie-seems-to-not-autoclose/34591/3 "2022-03-29T14:49:45Z")

</div>

we having this exact same problem too. it was working a few days ago. We didn’t change any configuration. I think this problem occured after server last update.

---

<div class="post-metadata">

**Author:** ![AymericM](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/aymericm/32/38607_2.png) [@AymericM](https://community.dynatrace.com/u/AymericM)\
**Post date:** [March 29, 2022, 2:58pm UTC](https://community.dynatrace.com/t/problems-sent-to-opsgenie-seems-to-not-autoclose/34591/4 "2022-03-29T14:58:32Z")

</div>

I sent a ticket to Dynatrace support. The answer is that Atlassian depracated the V1 of Opsgenie integration with Dynatrace and is pushing the use of their new integration using a webhook in a Custom Integration.

The advice of Dynatrace support was to follow Opsegnie documentation :

> **[Integrate Opsgenie with Dynatrace Webhook (v2) | Opsgenie | Atlassian Support](https://support.atlassian.com/opsgenie/docs/integrate-opsgenie-with-dynatrace-webhook-v2/)**
>
> Dynatrace is SaaS application monitoring and analytics for cloud natives.

And to make sure to :

- check the box “Call webhook if problem is closed”

- add “PID”:“{PID}” in the json.

We tried it and it works.

---

<div class="post-metadata">

**Author:** ![Thps44](https://avatars.discourse-cdn.com/v4/letter/t/e8c25b/32.png) [@Thps44](https://community.dynatrace.com/u/Thps44)\
**Post date:** [March 29, 2022, 4:01pm UTC](https://community.dynatrace.com/t/problems-sent-to-opsgenie-seems-to-not-autoclose/34591/5 "2022-03-29T16:01:47Z")

</div>

When I add “PID”:“{PID}” to the json it strips responders/owners from the alert so it goes to Opgenie but doesn’t trigger actual alerts, when I removed the “PID”:“{PID}” I get the alert notifications. Did you also see this behavior?

---

<div class="post-metadata">

**Author:** ![AymericM](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/aymericm/32/38607_2.png) [@AymericM](https://community.dynatrace.com/u/AymericM)\
**Post date:** [March 29, 2022, 4:57pm UTC](https://community.dynatrace.com/t/problems-sent-to-opsgenie-seems-to-not-autoclose/34591/6 "2022-03-29T16:57:29Z")

</div>

I don’t think we have this problem.

You’re using the Custom Integration ?

If yes do you add the PID after the default JSON ?  
If yes do you add a comma after the ProblemTitle line so the JSO remain valid ?

```auto
{
"State":"{State}",
"ProblemID":"{ProblemID}",
"ProblemTitle":"{ProblemTitle}",
"PID":"{PID}"
}

```

---

<div class="post-metadata">

**Author:** ![Thps44](https://avatars.discourse-cdn.com/v4/letter/t/e8c25b/32.png) [@Thps44](https://community.dynatrace.com/u/Thps44)\
**Post date:** [March 29, 2022, 5:16pm UTC](https://community.dynatrace.com/t/problems-sent-to-opsgenie-seems-to-not-autoclose/34591/7 "2022-03-29T17:16:32Z")

</div>

Yes, using custom integration and my JSON is identical, I deleted and recreated the integration and I get the notifications in OpsGenie but it is not assigning an owner or responder even thought the team is added to the integration I am not sure what is occurring. I tried tying it to the escalation process and the team both act the same and are not triggering an alert.

---

<div class="post-metadata">

**Author:** ![Thps44](https://avatars.discourse-cdn.com/v4/letter/t/e8c25b/32.png) [@Thps44](https://community.dynatrace.com/u/Thps44)\
**Post date:** [March 29, 2022, 5:20pm UTC](https://community.dynatrace.com/t/problems-sent-to-opsgenie-seems-to-not-autoclose/34591/8 "2022-03-29T17:20:19Z")

</div>

I think I just figured it out, even though the webhook integration is setup the alerts are coming in via the Default API which was not assigned to a team.

---

<div class="post-metadata">

**Author:** ![hakanozanlagan](https://avatars.discourse-cdn.com/v4/letter/h/a183cd/32.png) [@hakanozanlagan](https://community.dynatrace.com/u/hakanozanlagan)\
**Post date:** [March 30, 2022, 10:09am UTC](https://community.dynatrace.com/t/problems-sent-to-opsgenie-seems-to-not-autoclose/34591/9 "2022-03-30T10:09:51Z")

</div>

how did you set priority?&nbsp; **ProblemSeverity** &nbsp;propery is not working.

**{ProblemSeverity}** : Severity level of the problem. Possible values are AVAILABILITY, ERROR, PERFORMANCE, RESOURCE\_CONTENTION, or CUSTOM\_ALERT.

---

<div class="post-metadata">

**Author:** ![Keef\_10](https://avatars.discourse-cdn.com/v4/letter/k/e8c25b/32.png) [@Keef\_10](https://community.dynatrace.com/u/Keef_10)\
**Post date:** [April 21, 2022, 9:20am UTC](https://community.dynatrace.com/t/problems-sent-to-opsgenie-seems-to-not-autoclose/34591/10 "2022-04-21T09:20:31Z")

</div>

The close alert still does not work for me.

Have you got anymore tips/tricks to try?
