Page 1 of 1

Check for when website fails over from production to backup

Posted: Fri Jul 12, 2019 3:38 pm
by cityofsanibel
We have a website (http://admin.mysanibel.com) that dispalys an error message when production has failed over to backup.

The message is "WARNING: The site is currently being served from a backup/failover server. Changes made here will only be visible until the site returns to production mode. You will need to recreate your changes in the production environment if you want them to remain in effect permanently."

I don't need the whole text, and can use the string "backup/failover" as the trigger.
I was looking at Monitor a website, but didnt see a way to create a check that is "green" (OK) without the text, and an error alerrt conditon when the text is present.

Thanks,
Bert Smith
239-472-3700

Re: Check for when website fails over from production to bac

Posted: Fri Jul 12, 2019 4:46 pm
by scottwilkerson
If you run the Website URL Wizard, you can add the following to the "URL Content Regular Expression Match" box

Code: Select all

failover
Then, after saving the configuration, find the service in the CCM and add the following to the end of the $ARG1$ files

Code: Select all

--invert-regex
Save
Apply Configuration

This will error if failover is found