<?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 Mark Synthetic check as OK when website in maintenance mode in Synthetic Monitoring</title>
    <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Mark-Synthetic-check-as-OK-when-website-in-maintenance-mode/m-p/121423#M2831</link>
    <description>&lt;P&gt;Hi, we've had a request to implement monitoring against a web platform, one of the considerations they've asked for however is that if the website is in maintenance mode then the system should continue to report as available (not callout).&lt;/P&gt;&lt;P&gt;We've seen with a standard journey we;&lt;BR /&gt;1. Access the URL&lt;BR /&gt;2. Enter username&lt;BR /&gt;3. Enter password &amp;amp; login&lt;BR /&gt;4. enter postcode&lt;/P&gt;&lt;P&gt;We've seen when the maintenance mode is active, the journey fails at step 4.&lt;/P&gt;&lt;P&gt;As a means to skip the rest of the journey if some text is present (indicating maintenance mode) i've tried to implement the following;&lt;BR /&gt;&lt;A rel="nofollow" href="https://www.dynatrace.com/support/doc/synthetic/recorder/custom-scripting/scripting-conditional-pages/#anchor_addcustomaction"&gt;https://www.dynatrace.com/support/doc/synthetic/recorder/custom-scripting/scripting-conditional-pages/#anchor_addcustomaction&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I'm seeing failures when running this against the active site (in xxxx.live.dynatrace.com). Could anyone advise if it's possible to implement a function that would do this?&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 26 Jul 2019 08:07:05 GMT</pubDate>
    <dc:creator>jake_hardy</dc:creator>
    <dc:date>2019-07-26T08:07:05Z</dc:date>
    <item>
      <title>Mark Synthetic check as OK when website in maintenance mode</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Mark-Synthetic-check-as-OK-when-website-in-maintenance-mode/m-p/121423#M2831</link>
      <description>&lt;P&gt;Hi, we've had a request to implement monitoring against a web platform, one of the considerations they've asked for however is that if the website is in maintenance mode then the system should continue to report as available (not callout).&lt;/P&gt;&lt;P&gt;We've seen with a standard journey we;&lt;BR /&gt;1. Access the URL&lt;BR /&gt;2. Enter username&lt;BR /&gt;3. Enter password &amp;amp; login&lt;BR /&gt;4. enter postcode&lt;/P&gt;&lt;P&gt;We've seen when the maintenance mode is active, the journey fails at step 4.&lt;/P&gt;&lt;P&gt;As a means to skip the rest of the journey if some text is present (indicating maintenance mode) i've tried to implement the following;&lt;BR /&gt;&lt;A rel="nofollow" href="https://www.dynatrace.com/support/doc/synthetic/recorder/custom-scripting/scripting-conditional-pages/#anchor_addcustomaction"&gt;https://www.dynatrace.com/support/doc/synthetic/recorder/custom-scripting/scripting-conditional-pages/#anchor_addcustomaction&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I'm seeing failures when running this against the active site (in xxxx.live.dynatrace.com). Could anyone advise if it's possible to implement a function that would do this?&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Jul 2019 08:07:05 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Mark-Synthetic-check-as-OK-when-website-in-maintenance-mode/m-p/121423#M2831</guid>
      <dc:creator>jake_hardy</dc:creator>
      <dc:date>2019-07-26T08:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Mark Synthetic check as OK when website in maintenance mode</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Mark-Synthetic-check-as-OK-when-website-in-maintenance-mode/m-p/121424#M2832</link>
      <description>&lt;P&gt;Hi Jake,&lt;/P&gt;&lt;P&gt;adding conditional code is the correct way to do this. The link you have provided is for our Classic Product rather than SaaS. For SaaS, you need to use a JavaScript event and can set the script to finish or skip the rest of the events. You can find more information on this &lt;A rel="noopener noreferrer" href="https://www.dynatrace.com/support/help/how-to-use-dynatrace/synthetic-monitoring/browser-monitors/browser-clickpath-events/#javascript-" target="_blank"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Best wishes, Hannah&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Jul 2019 08:19:04 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Mark-Synthetic-check-as-OK-when-website-in-maintenance-mode/m-p/121424#M2832</guid>
      <dc:creator>HannahM</dc:creator>
      <dc:date>2019-07-26T08:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: Mark Synthetic check as OK when website in maintenance mode</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Mark-Synthetic-check-as-OK-when-website-in-maintenance-mode/m-p/121425#M2833</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://answers.dynatrace.com/users/3408/view.html" nodeid="3408"&gt;@Hannah M.&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks for sharing this. I'm not too familiar with javascript. I've written this with the assistance of StackOverflow&lt;IMG src="https://community.dynatrace.com/legacyfs/online/21409-2019-07-26-10-19-13-monitor-settings-bskyb-ace1712.png" /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"if (&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;  (&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;    document.documentElement.textContent || document.documentElement.innerText&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;  ).indexOf('The website is currently undergoing maintenance, please try again later.') &amp;gt; -1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;) {&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;  // Do something...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;  api.skipNextSyntheticEvents(21);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;}"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This event is set at position 4 &amp;amp; there are 25 total events, does this look correct?&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Jul 2019 09:22:59 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Mark-Synthetic-check-as-OK-when-website-in-maintenance-mode/m-p/121425#M2833</guid>
      <dc:creator>jake_hardy</dc:creator>
      <dc:date>2019-07-26T09:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Mark Synthetic check as OK when website in maintenance mode</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Mark-Synthetic-check-as-OK-when-website-in-maintenance-mode/m-p/121426#M2834</link>
      <description>&lt;P&gt;Yes, that looks good. &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Jul 2019 09:32:33 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Mark-Synthetic-check-as-OK-when-website-in-maintenance-mode/m-p/121426#M2834</guid>
      <dc:creator>HannahM</dc:creator>
      <dc:date>2019-07-26T09:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Mark Synthetic check as OK when website in maintenance mode</title>
      <link>https://community.dynatrace.com/t5/Synthetic-Monitoring/Mark-Synthetic-check-as-OK-when-website-in-maintenance-mode/m-p/121427#M2835</link>
      <description>&lt;P&gt;Since Synthetic Monitor knows that the site is under maintenance mode, at least for Alerting, is there something that in the script could be used in a similar manner.... basically&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;if (Site is under scheduled maintenance) . # Some flag/field in Dynatrace that could be used here&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;    exit&lt;/P&gt;&lt;P&gt;endif&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Aug 2019 14:27:14 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Synthetic-Monitoring/Mark-Synthetic-check-as-OK-when-website-in-maintenance-mode/m-p/121427#M2835</guid>
      <dc:creator>Don_Meuth</dc:creator>
      <dc:date>2019-08-08T14:27:14Z</dc:date>
    </item>
  </channel>
</rss>

