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
Check for when website fails over from production to backup
-
- Posts: 2
- Joined: Mon Feb 05, 2018 2:57 pm
Check for when website fails over from production to backup
You do not have the required permissions to view the files attached to this post.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Check for when website fails over from production to bac
If you run the Website URL Wizard, you can add the following to the "URL Content Regular Expression Match" box
Then, after saving the configuration, find the service in the CCM and add the following to the end of the $ARG1$ files
Save
Apply Configuration
This will error if failover is found
Code: Select all
failover
Code: Select all
--invert-regex
Apply Configuration
This will error if failover is found