<?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: How to set email notification when Synthetic HTTP Monitor fails? in Alerting</title>
    <link>https://community.dynatrace.com/t5/Alerting/Setting-email-notification-when-Synthetic-HTTP-Monitor-fails/m-p/257580#M4904</link>
    <description>&lt;P&gt;yes i did all this as you mention, i will check now if i receive alerts or not.&lt;/P&gt;</description>
    <pubDate>Mon, 30 Sep 2024 13:11:19 GMT</pubDate>
    <dc:creator>pseg1984</dc:creator>
    <dc:date>2024-09-30T13:11:19Z</dc:date>
    <item>
      <title>Setting email notification when Synthetic HTTP Monitor fails</title>
      <link>https://community.dynatrace.com/t5/Alerting/Setting-email-notification-when-Synthetic-HTTP-Monitor-fails/m-p/257559#M4901</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;i have more than 10 synthetic tests with HTTP Monitor, all are api calls.&lt;/P&gt;
&lt;P&gt;in the synthetic test settings at Outage handling i activated&lt;/P&gt;
&lt;P&gt;-Generate a problem and send alert when the monitor is unavailable at all configuration locations. Ok but i don't really need this one for now.&lt;/P&gt;
&lt;P&gt;-Generate a problem and send alert when the monitor is unavailable for one or more consecutive runs at any locations: i don't need this one too for now.&lt;/P&gt;
&lt;P&gt;Then in Settings/Alerting/Problem alerting profiles i added notification with basic rules.&lt;/P&gt;
&lt;P&gt;Then in&amp;nbsp;Settings/Integration/Problem notifications i added my email.&lt;/P&gt;
&lt;P&gt;i clicked on test send alert.&lt;/P&gt;
&lt;P&gt;i sends the alert by email.&lt;/P&gt;
&lt;P&gt;In my HTTP Monitor test i have this:&lt;/P&gt;
&lt;P&gt;post-execution:&lt;/P&gt;
&lt;P&gt;var StatusCode =reponsegetStatusCode();&lt;/P&gt;
&lt;P&gt;if(statusCode === 400 ||&amp;nbsp;statusCode === 403 ||&amp;nbsp;statusCode === 500 ||&amp;nbsp;statusCode === 503){&lt;/P&gt;
&lt;P&gt;api.fail("Test failed: " + statusCode)}&lt;/P&gt;
&lt;P&gt;But when my HTTP Monitor fails i don't receive email notifications.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2024 09:31:51 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Setting-email-notification-when-Synthetic-HTTP-Monitor-fails/m-p/257559#M4901</guid>
      <dc:creator>pseg1984</dc:creator>
      <dc:date>2024-10-08T09:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to set email notification when Synthetic HTTP Monitor fails?</title>
      <link>https://community.dynatrace.com/t5/Alerting/Setting-email-notification-when-Synthetic-HTTP-Monitor-fails/m-p/257578#M4902</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/80625"&gt;@pseg1984&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First of all, thanks for sharing your concern:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create a management zone to include all created HTTP monitors.&lt;/LI&gt;&lt;LI&gt;Create alerting profile based on the created management zone.&lt;/LI&gt;&lt;LI&gt;In the alerting profile, you will keep only the availability, you don't need all other options as long as you're executing HTTP tests against URLs or APIs.&lt;/LI&gt;&lt;LI&gt;Ensure enabling the attached option for outage handling, otherwise you won't receive alerts.&lt;/LI&gt;&lt;LI&gt;Under Integrations&amp;gt;&amp;nbsp; Problem notifications &amp;gt; Email &amp;gt; specify your email, and alerting profile &amp;gt; send test notification to check the successful configurations.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="6.png" style="width: 839px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/23045iDD3CD9D0ED084FA8/image-size/large?v=v2&amp;amp;px=999" role="button" title="6.png" alt="6.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For Post execution, you can add it under Post execution scripts&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="7.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/23046i7C885664B869D0E2/image-size/large?v=v2&amp;amp;px=999" role="button" title="7.png" alt="7.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As long as your post execution script returns the actual response code, no need to set rules for Response validation.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="8.png" style="width: 839px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/23047iC88E9D2C8874C6D0/image-size/large?v=v2&amp;amp;px=999" role="button" title="8.png" alt="8.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;KR,&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 12:57:37 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Setting-email-notification-when-Synthetic-HTTP-Monitor-fails/m-p/257578#M4902</guid>
      <dc:creator>Peter_Youssef</dc:creator>
      <dc:date>2024-09-30T12:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to set email notification when Synthetic HTTP Monitor fails?</title>
      <link>https://community.dynatrace.com/t5/Alerting/Setting-email-notification-when-Synthetic-HTTP-Monitor-fails/m-p/257580#M4904</link>
      <description>&lt;P&gt;yes i did all this as you mention, i will check now if i receive alerts or not.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 13:11:19 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Setting-email-notification-when-Synthetic-HTTP-Monitor-fails/m-p/257580#M4904</guid>
      <dc:creator>pseg1984</dc:creator>
      <dc:date>2024-09-30T13:11:19Z</dc:date>
    </item>
  </channel>
</rss>

