Check for when website fails over from production to backup

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
cityofsanibel
Posts: 2
Joined: Mon Feb 05, 2018 2:57 pm

Check for when website fails over from production to backup

Post 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
You do not have the required permissions to view the files attached to this post.
scottwilkerson
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

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked