<?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 Re: Alerting on Recurring process restart in Alerting</title>
    <link>https://community.dynatrace.com/t5/Alerting/Alerting-on-Recurring-process-restart/m-p/190502#M3085</link>
    <description>&lt;P&gt;Hi Shifu,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have just realized that my previous comment does not provide solution for your problem...sorry.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Br, Mizső&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jul 2022 14:10:36 GMT</pubDate>
    <dc:creator>Mizső</dc:creator>
    <dc:date>2022-07-13T14:10:36Z</dc:date>
    <item>
      <title>Alerting on Recurring process restart</title>
      <link>https://community.dynatrace.com/t5/Alerting/Alerting-on-Recurring-process-restart/m-p/190462#M3082</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We got a recurring process that restarts every hour and is executed for 30 min, is it possible to create an alert when this process hasn't restarted for 1 hour?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shifu_0-1657702319676.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/6552iEFBD998DCB6EBFC9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="shifu_0-1657702319676.png" alt="shifu_0-1657702319676.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 09:38:16 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Alerting-on-Recurring-process-restart/m-p/190462#M3082</guid>
      <dc:creator>shifu</dc:creator>
      <dc:date>2022-07-14T09:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: Alerting on Recurring process restart</title>
      <link>https://community.dynatrace.com/t5/Alerting/Alerting-on-Recurring-process-restart/m-p/190500#M3084</link>
      <description>&lt;P&gt;Hi Shifu,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe you should use this feature:&amp;nbsp;&amp;nbsp;&lt;A href="https://www.dynatrace.com/support/help/how-to-use-dynatrace/process-groups/monitoring/process-group-availability-monitoring-and-alerting" target="_blank" rel="noopener"&gt;Process group availability monitoring and alerting | Dynatrace Docs&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It is&amp;nbsp;immediately opens a problem. If you would like to receive for example an e-mail notification after one hour about this issue you should:&lt;/P&gt;
&lt;P&gt;1. Create a management zone for this single process (in the settings/preferences),&lt;/P&gt;
&lt;P&gt;2. Create an alerting profile (in the settings / alerting) - set the availability alert after 60 mins and the others severities based on your requirements,&lt;/P&gt;
&lt;P&gt;3. Create an e-mail problem notification (in the settings / integrarion) - use the created alerting profile above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this is your request.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="processgroup_availability.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/6584i584DA2D79B6834B1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="processgroup_availability.png" alt="processgroup_availability.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Br, Mizső&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 09:39:28 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Alerting-on-Recurring-process-restart/m-p/190500#M3084</guid>
      <dc:creator>Mizső</dc:creator>
      <dc:date>2022-07-14T09:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Alerting on Recurring process restart</title>
      <link>https://community.dynatrace.com/t5/Alerting/Alerting-on-Recurring-process-restart/m-p/190502#M3085</link>
      <description>&lt;P&gt;Hi Shifu,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have just realized that my previous comment does not provide solution for your problem...sorry.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Br, Mizső&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 14:10:36 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Alerting-on-Recurring-process-restart/m-p/190502#M3085</guid>
      <dc:creator>Mizső</dc:creator>
      <dc:date>2022-07-13T14:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Alerting on Recurring process restart</title>
      <link>https://community.dynatrace.com/t5/Alerting/Alerting-on-Recurring-process-restart/m-p/190519#M3086</link>
      <description>&lt;P&gt;Hi Shifu,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have another idea, but it is not a full solution. You can use the events api the get information about events. You can count the process restart of the specific process in a spercific time frame. Please check the environment api v2 events api. You can find a get / events endpoint. On the DT GUI you can test it with a events.read api token.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have made an exapmle. This curl can be use to fetch the a sepecific process restarts events count for the specific process group in the last 12 hours.&lt;/P&gt;&lt;P&gt;curl -X GET https://&lt;STRONG&gt;yourserver&lt;/STRONG&gt;/e/&lt;STRONG&gt;yourenvironmentid&lt;/STRONG&gt;/api/v2/events?from=now-12h&amp;amp;eventSelector=eventType%28%22PROCESS_RESTART%22%29&amp;amp;entitySelector=entityId%28%22PROCESS_GROUP_INSTANCE-&lt;STRONG&gt;yourprocessgroupid&lt;/STRONG&gt;%22%29 -H "accept: application/json; charset=utf-8" -H "Authorization: Api-Token &lt;STRONG&gt;yourreadeventv2apitoken&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the above curl you can create a script which one could run every hours (change the from now-1h).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The response first line is the events count see an example below (for smtpd process), rest of the lines are unnecessary for you:&lt;/P&gt;&lt;P&gt;response:&lt;BR /&gt;{&lt;BR /&gt;"totalCount": 21,&lt;BR /&gt;"pageSize": 100,&lt;BR /&gt;"events": [&lt;BR /&gt;{&lt;BR /&gt;"eventId": "-3274538997293409360_1657721040000",&lt;BR /&gt;"startTime": 1657721040000,&lt;BR /&gt;"endTime": 1657721050000,&lt;BR /&gt;"eventType": "PROCESS_RESTART",&lt;BR /&gt;"title": "Process restart",&lt;BR /&gt;"entityId": {&lt;BR /&gt;"entityId": {&lt;BR /&gt;"id": "PROCESS_GROUP_INSTANCE-yourprocessid",&lt;BR /&gt;"type": "PROCESS_GROUP_INSTANCE"&lt;BR /&gt;},&lt;BR /&gt;"name": "smtpd"&lt;BR /&gt;},&lt;BR /&gt;"properties": [&lt;BR /&gt;{&lt;BR /&gt;"key": "dt.event.group_label",&lt;BR /&gt;"value": "Process restart"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"key": "dt.event.impact_level",&lt;BR /&gt;"value": "Infrastructure"&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"status": "CLOSED",&lt;BR /&gt;"entityTags": [&lt;BR /&gt;{&lt;BR /&gt;"context": "CONTEXTLESS",&lt;BR /&gt;"key": "X hosts",&lt;BR /&gt;"stringRepresentation": "X hosts"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"context": "CONTEXTLESS",&lt;BR /&gt;"key": "ProcessGroupName",&lt;BR /&gt;"value": "smtpd",&lt;BR /&gt;"stringRepresentation": "ProcessGroupName:smtpd"&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"managementZones": [],&lt;BR /&gt;"underMaintenance": false,&lt;BR /&gt;"suppressAlert": false,&lt;BR /&gt;"suppressProblem": false,&lt;BR /&gt;"frequentEvent": false&lt;BR /&gt;},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is not a full solution beasue you do not have notification about it. Maybe you can ingest back this metric to DT via the Metrics API, but I do not have experience with it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope it is uesful for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Br, Mizső&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 15:08:56 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Alerting-on-Recurring-process-restart/m-p/190519#M3086</guid>
      <dc:creator>Mizső</dc:creator>
      <dc:date>2022-07-13T15:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Alerting on Recurring process restart</title>
      <link>https://community.dynatrace.com/t5/Alerting/Alerting-on-Recurring-process-restart/m-p/190521#M3087</link>
      <description>&lt;P&gt;Thank you Mizsö for you replies, i'll try some of your propositions, maybe one will fetch well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Shifu&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 15:17:14 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Alerting-on-Recurring-process-restart/m-p/190521#M3087</guid>
      <dc:creator>shifu</dc:creator>
      <dc:date>2022-07-13T15:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Alerting on Recurring process restart</title>
      <link>https://community.dynatrace.com/t5/Alerting/Alerting-on-Recurring-process-restart/m-p/190561#M3089</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/47783"&gt;@Mizső&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yep, your suggestion to ingest the information back to dynatrace with metric/ingest is working.&lt;/P&gt;&lt;P&gt;Attached a small AG extension (v1) that pulls the restart events according to supplied tag and it push the information back to dynatrace.&lt;/P&gt;&lt;P&gt;Here is how the UI is look like&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Yosi_Neuman_0-1657783602115.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/6582iAD075FFD277CBD05/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Yosi_Neuman_0-1657783602115.png" alt="Yosi_Neuman_0-1657783602115.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And this is the ingest metric in dynatrace&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Yosi_Neuman_1-1657783952253.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/6583i242AF92AC3C2C0C4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Yosi_Neuman_1-1657783952253.png" alt="Yosi_Neuman_1-1657783952253.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Yos&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 07:35:37 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Alerting-on-Recurring-process-restart/m-p/190561#M3089</guid>
      <dc:creator>Yosi_Neuman</dc:creator>
      <dc:date>2022-07-14T07:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Alerting on Recurring process restart</title>
      <link>https://community.dynatrace.com/t5/Alerting/Alerting-on-Recurring-process-restart/m-p/190768#M3099</link>
      <description>&lt;P&gt;Yos,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Br, Mizső&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 07:19:19 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Alerting-on-Recurring-process-restart/m-p/190768#M3099</guid>
      <dc:creator>Mizső</dc:creator>
      <dc:date>2022-07-18T07:19:19Z</dc:date>
    </item>
  </channel>
</rss>

