<?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 Dynatrace payload issue with custom integration in Dynatrace Managed Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Dynatrace-payload-issue-with-custom-integration/m-p/164895#M1651</link>
    <description>&lt;P&gt;Hi, I am working on a requirement where I have to integrate my Dynatrace Managed with Netcool which is another monitoring system to raise incident/tickets in remedy. The integration is all successful and we are able to send the payload to Netcool. But the problem is the payload itself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What i have done is created a alerting profile (&lt;STRONG&gt;XYZ-profile&lt;/STRONG&gt;) which uses a Management Zone (&lt;STRONG&gt;XYZ-mz&lt;/STRONG&gt;). Now this management zone has a rule which says -&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Services&lt;/STRONG&gt;&amp;nbsp;where&amp;nbsp;Service type&amp;nbsp;equals 'Web service' and that run on&amp;nbsp;&lt;STRONG&gt;Hosts&lt;/STRONG&gt;&amp;nbsp;where&amp;nbsp;Host name&amp;nbsp;begins with 'myhost-'&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have 2 queries when we get multiple services problems in a single event -&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;What the above rule doing is fetching the services deployed on myhost-* and also the parent services impacted by these services. For example this is a middleware host so the calling application could be any front end so in the payload, we are also getting those front end hosts and related services. We only want the services impacted on myhost-* and not others. Is there a way to achieve this?&lt;/LI&gt;
&lt;LI&gt;The other thing is Dynatrace does not provide the {hostname} in the payload so I had to extract it using tags because it is mandatory to provide hostname to Netcool in order to raise remedy tickets. Is there any other better way to see this?&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The payload i am using -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt;"State":"{State}",&lt;BR /&gt;"PID":"{PID}",&lt;BR /&gt;"ProblemID":"{ProblemID}",&lt;BR /&gt;"ProblemTitle":"{ProblemTitle}",&lt;BR /&gt;"MW_Host":"{Tags}",&lt;BR /&gt;"ImpactedEntity":"{ImpactedEntity}",&lt;BR /&gt;"ImpactedEntities":{ImpactedEntities},&lt;BR /&gt;"ProblemSeverity":"{ProblemSeverity}"&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Sample payload I am getting is -&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt;"State":"OPEN",&lt;BR /&gt;"PID":"-XXXXXXXXXXX",&lt;BR /&gt;"ProblemID":"P-21042920",&lt;BR /&gt;&lt;STRONG&gt;"ProblemTitle":"Multiple service problems",&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;"MW_Host":"MW_Host:myhost-p11, MW_Host:myhost-p12, MW_Host:myhost-p13, OID:otherhost-p11, OID:otherhost-p12,&lt;/STRONG&gt;&lt;BR /&gt;"ImpactedEntity":"Multiple service problems on 5 Services",&lt;BR /&gt;&lt;STRONG&gt;"ImpactedEntities":[{"type":"SERVICE","name":"myhost-service1","entity":"SERVICE-XXXXX"},{"type":"SERVICE","name":"myhost-servioc2","entity":"SERVICE-XXXXXX"},{"type":"SERVICE","name":"otherhost-service1","entity":"SERVICE-XXXXXX"},{"type":"SERVICE","name":"otherhost-service2","entity":"SERVICE-XXXX"],&lt;/STRONG&gt;&lt;BR /&gt;"ProblemSeverity":"ERROR"&lt;BR /&gt;}&lt;/P&gt;</description>
    <pubDate>Wed, 14 Jun 2023 09:28:32 GMT</pubDate>
    <dc:creator>shashank_b_agra</dc:creator>
    <dc:date>2023-06-14T09:28:32Z</dc:date>
    <item>
      <title>Dynatrace payload issue with custom integration</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Dynatrace-payload-issue-with-custom-integration/m-p/164895#M1651</link>
      <description>&lt;P&gt;Hi, I am working on a requirement where I have to integrate my Dynatrace Managed with Netcool which is another monitoring system to raise incident/tickets in remedy. The integration is all successful and we are able to send the payload to Netcool. But the problem is the payload itself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What i have done is created a alerting profile (&lt;STRONG&gt;XYZ-profile&lt;/STRONG&gt;) which uses a Management Zone (&lt;STRONG&gt;XYZ-mz&lt;/STRONG&gt;). Now this management zone has a rule which says -&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Services&lt;/STRONG&gt;&amp;nbsp;where&amp;nbsp;Service type&amp;nbsp;equals 'Web service' and that run on&amp;nbsp;&lt;STRONG&gt;Hosts&lt;/STRONG&gt;&amp;nbsp;where&amp;nbsp;Host name&amp;nbsp;begins with 'myhost-'&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have 2 queries when we get multiple services problems in a single event -&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;What the above rule doing is fetching the services deployed on myhost-* and also the parent services impacted by these services. For example this is a middleware host so the calling application could be any front end so in the payload, we are also getting those front end hosts and related services. We only want the services impacted on myhost-* and not others. Is there a way to achieve this?&lt;/LI&gt;
&lt;LI&gt;The other thing is Dynatrace does not provide the {hostname} in the payload so I had to extract it using tags because it is mandatory to provide hostname to Netcool in order to raise remedy tickets. Is there any other better way to see this?&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The payload i am using -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt;"State":"{State}",&lt;BR /&gt;"PID":"{PID}",&lt;BR /&gt;"ProblemID":"{ProblemID}",&lt;BR /&gt;"ProblemTitle":"{ProblemTitle}",&lt;BR /&gt;"MW_Host":"{Tags}",&lt;BR /&gt;"ImpactedEntity":"{ImpactedEntity}",&lt;BR /&gt;"ImpactedEntities":{ImpactedEntities},&lt;BR /&gt;"ProblemSeverity":"{ProblemSeverity}"&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Sample payload I am getting is -&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt;"State":"OPEN",&lt;BR /&gt;"PID":"-XXXXXXXXXXX",&lt;BR /&gt;"ProblemID":"P-21042920",&lt;BR /&gt;&lt;STRONG&gt;"ProblemTitle":"Multiple service problems",&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;"MW_Host":"MW_Host:myhost-p11, MW_Host:myhost-p12, MW_Host:myhost-p13, OID:otherhost-p11, OID:otherhost-p12,&lt;/STRONG&gt;&lt;BR /&gt;"ImpactedEntity":"Multiple service problems on 5 Services",&lt;BR /&gt;&lt;STRONG&gt;"ImpactedEntities":[{"type":"SERVICE","name":"myhost-service1","entity":"SERVICE-XXXXX"},{"type":"SERVICE","name":"myhost-servioc2","entity":"SERVICE-XXXXXX"},{"type":"SERVICE","name":"otherhost-service1","entity":"SERVICE-XXXXXX"},{"type":"SERVICE","name":"otherhost-service2","entity":"SERVICE-XXXX"],&lt;/STRONG&gt;&lt;BR /&gt;"ProblemSeverity":"ERROR"&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 09:28:32 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Dynatrace-payload-issue-with-custom-integration/m-p/164895#M1651</guid>
      <dc:creator>shashank_b_agra</dc:creator>
      <dc:date>2023-06-14T09:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Dynatrace payload issue with Custom Integration</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Dynatrace-payload-issue-with-custom-integration/m-p/165474#M1652</link>
      <description>&lt;P&gt;First thing I would do is make sure your Management zone only includes data at a service level and not including hosts and other data that you do not want to see. From there you need to ensure your alert profile is set to just that management zone that only gives you the limited services view.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When it comes to host name being transmitted that can be an issue sometimes. I recommend either making a auto tag that captures the Host Name and applied it to the Services, Processes and so on. Then in your webhook payload send along all the tags that exists. this will also allow you to expand the number of tags being set for further alert parsing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The other option is to rename the services and/or processes to contain the host names in the service names. take a look at this example:&amp;nbsp;&lt;A href="https://www.dynatrace.com/news/blog/more-effective-ai-to-human-interactions-with-dynatrace-davis/" target="_blank"&gt;https://www.dynatrace.com/news/blog/more-effective-ai-to-human-interactions-with-dynatrace-davis/&lt;/A&gt;&amp;nbsp;This method takes away the need for tags, but you can also use them together for even more clarity.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 12:46:20 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Dynatrace-payload-issue-with-custom-integration/m-p/165474#M1652</guid>
      <dc:creator>ChadTurner</dc:creator>
      <dc:date>2021-05-05T12:46:20Z</dc:date>
    </item>
  </channel>
</rss>

