We have a site that is monitored with a New Relic “Scripted Browser” Synthetic.
The site occasionally enters “maintenance mode” for a short (unscheduled) window of time, typically late at night and/or on weekends. When you visit the site during those times, the entire site is replaced with a simple HTML maintenance page.
I would like to modify our script to detect the presence of this page, probably by searching for text in the page body like… “currently being updated” and short-circuit the script without triggering an alert. Note that we still need to be able to detect when the site is down or otherwise non-functional according to our normal script flow.
- maintenance mode (never alert)
- normal site - test scripted flow (alert if failure or site is down)
I can’t figure out how to do this. Any thoughts?