<?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 Extract process name and hostname from Dynatrace Extra Vars in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Extract-process-name-and-hostname-from-Dynatrace-Extra-Vars/m-p/195046#M22641</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm looking for a way to extract the "process name" for example httpd or myqsld to be used in ansible playbook variables.&lt;/P&gt;
&lt;P&gt;The scenario is I'm integrating Dynatrace with ansible tower for self-healing scenarios and I want my ansible playbook to fetch the hostname and the process name from the Dynatrace Extra vars.&lt;/P&gt;
&lt;P&gt;Note. Tried with tags. but tags are not available for deep monitoring process.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below are the variables I'm getting only:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;problemId: P-****&lt;BR /&gt;problemImpact: INFRASTRUCTURE&lt;BR /&gt;problemSeverity: AVAILABILITY&lt;BR /&gt;problemTitle: Process unavailable&lt;BR /&gt;problemUrl: &amp;gt;-&lt;BR /&gt;state: OPEN&lt;BR /&gt;tags: []&lt;/P&gt;</description>
    <pubDate>Mon, 26 Sep 2022 07:50:19 GMT</pubDate>
    <dc:creator>mbadry</dc:creator>
    <dc:date>2022-09-26T07:50:19Z</dc:date>
    <item>
      <title>Extract process name and hostname from Dynatrace Extra Vars</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Extract-process-name-and-hostname-from-Dynatrace-Extra-Vars/m-p/195046#M22641</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm looking for a way to extract the "process name" for example httpd or myqsld to be used in ansible playbook variables.&lt;/P&gt;
&lt;P&gt;The scenario is I'm integrating Dynatrace with ansible tower for self-healing scenarios and I want my ansible playbook to fetch the hostname and the process name from the Dynatrace Extra vars.&lt;/P&gt;
&lt;P&gt;Note. Tried with tags. but tags are not available for deep monitoring process.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below are the variables I'm getting only:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;problemId: P-****&lt;BR /&gt;problemImpact: INFRASTRUCTURE&lt;BR /&gt;problemSeverity: AVAILABILITY&lt;BR /&gt;problemTitle: Process unavailable&lt;BR /&gt;problemUrl: &amp;gt;-&lt;BR /&gt;state: OPEN&lt;BR /&gt;tags: []&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 07:50:19 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Extract-process-name-and-hostname-from-Dynatrace-Extra-Vars/m-p/195046#M22641</guid>
      <dc:creator>mbadry</dc:creator>
      <dc:date>2022-09-26T07:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Extract process name and hostname from Dynatrace Extra Vars</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Extract-process-name-and-hostname-from-Dynatrace-Extra-Vars/m-p/196180#M22856</link>
      <description>&lt;P&gt;Hi Mbadry,&lt;BR /&gt;Did you tried adding more placeholders, such as:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;{ImpactedEntities}&lt;/STRONG&gt;: Details about the entities impacted by the problem in form of a json array.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;{ImpactedEntity}&lt;/STRONG&gt;: A short description of the problem and impacted entity (or multiple impacted entities).&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;{ImpactedEntityNames}&lt;/STRONG&gt;: The entity impacted by the problem (or multiple impacted entities).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Any or all of those will give the required information, but you need to include them as you included the ProblemID or Title.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, you can &lt;A href="https://www.dynatrace.com/support/help/how-to-use-dynatrace/tags-and-metadata/setup/how-to-define-tags#automatic" target="_self"&gt;create automatic tag rules&lt;/A&gt; to include information on the different Dynatrace entities, that you may find useful (For instance, add to Processes Groups the Hosts they are running in).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope it help!&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 15:18:32 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Extract-process-name-and-hostname-from-Dynatrace-Extra-Vars/m-p/196180#M22856</guid>
      <dc:creator>arturo_mondelo</dc:creator>
      <dc:date>2022-10-10T15:18:32Z</dc:date>
    </item>
  </channel>
</rss>

