<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Ansible problem notification in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Ansible-problem-notification/m-p/209299#M25612</link>
    <description>&lt;P&gt;I have Dynatrace integrated with Ansible Automation Platform for problem notification. The remediation is working excellent - Dynatrace detects the problem and triggers the template in Ansible. My issue is when Dynatrace detects the problem as resolved it triggers the Ansible template a second time even though the issue has been resolved. Any tips?&lt;/P&gt;</description>
    <pubDate>Thu, 06 Apr 2023 16:05:29 GMT</pubDate>
    <dc:creator>michael_stevens</dc:creator>
    <dc:date>2023-04-06T16:05:29Z</dc:date>
    <item>
      <title>Ansible problem notification</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Ansible-problem-notification/m-p/209299#M25612</link>
      <description>&lt;P&gt;I have Dynatrace integrated with Ansible Automation Platform for problem notification. The remediation is working excellent - Dynatrace detects the problem and triggers the template in Ansible. My issue is when Dynatrace detects the problem as resolved it triggers the Ansible template a second time even though the issue has been resolved. Any tips?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 16:05:29 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Ansible-problem-notification/m-p/209299#M25612</guid>
      <dc:creator>michael_stevens</dc:creator>
      <dc:date>2023-04-06T16:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible problem notification</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Ansible-problem-notification/m-p/209300#M25613</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Two ways to fix it. If you set up a custom alert you can prevent dynatrace to send an alert when a problem closes.&lt;/P&gt;&lt;P&gt;If the default way (ansible) sends out a second one when a problem closes and you cant edit this in the problem alerting setting, you can filter it out in your ansible template.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;In&lt;/EM&gt; the payload there is a problem status "closed", just use this value and stop the ru book if the value is not "new"&lt;/P&gt;&lt;P&gt;KR.&lt;/P&gt;&lt;P&gt;Michiel&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 16:56:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Ansible-problem-notification/m-p/209300#M25613</guid>
      <dc:creator>michiel_otten</dc:creator>
      <dc:date>2023-04-06T16:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible problem notification</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Ansible-problem-notification/m-p/209384#M25628</link>
      <description>&lt;P&gt;I'm on the right track. It seems the problem is Ansible is not receiving the payload. I've tried the built-in Ansible integration, I've also tried the webhook. I can initiate the template w/o issue, however, the payload with the variables is not being received.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my payload:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"State":"{State}",&lt;BR /&gt;"ProblemID":"{ProblemID}",&lt;BR /&gt;"ProblemTitle":"{ProblemTitle}",&lt;BR /&gt;"ImpactedEntity":"{ImpactedEntity}"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;I've used the same payload in testing a webhook to my ITSM tool and it is received. Any additional tips on where to look next? We're using the latest platform of Ansible Automation (ver 2.3).&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2023 17:31:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Ansible-problem-notification/m-p/209384#M25628</guid>
      <dc:creator>michael_stevens</dc:creator>
      <dc:date>2023-04-07T17:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible problem notification</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Ansible-problem-notification/m-p/209386#M25630</link>
      <description>&lt;P&gt;In Ansible you give in extra variables which you can use in a template. Investigate setting something up as:&amp;nbsp;&lt;/P&gt;&lt;P&gt;{"extra_vars": {"dt_pid":"{PID}"}}&lt;/P&gt;&lt;P&gt;Ansible will see the extra vars in the payload.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2023 18:00:31 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Ansible-problem-notification/m-p/209386#M25630</guid>
      <dc:creator>michiel_otten</dc:creator>
      <dc:date>2023-04-07T18:00:31Z</dc:date>
    </item>
  </channel>
</rss>

