novakin / dns-failover-cloudflare-monit Goto Github PK
View Code? Open in Web Editor NEWSetup DNS Failover for Cloudflare with monit - https://www.noobunbox.net
License: MIT License
Setup DNS Failover for Cloudflare with monit - https://www.noobunbox.net
License: MIT License
Hi mate
I am a noob and my issue might not be related to https but let me elaborate please.
"tomain" and "tobackup" scripts are working just fine when manually executed.
However, when I shut down Nginx on the main server those scripts aren't executed.
When I run "monit status" I get the info the host ping time is 0
So I presume it's wrong
Remote Host 'www.domain.com'
status Online with all services
monitoring status Monitored
ping response time 0.000s
data collected Tue, 06 Dec 2016 13:10:00
Do you have some tips on how to troubleshoot this.
*There is a http to https redirection in the Nginx conf
Thanks!
Hello
First of all, I'm glad to find such script, thanks for your work.
I've edited the files and filled with the right info, however I'm having some errors.
{"success":false,"errors":[{"code":7001,"message":"Method PUT not available for that URI."}],"messages":[],"result":null}
Also, how can I set this for multiple websites www.domain1.com, www.domain2.com, www.domain3.com, etc ? (all hosted on the same server)
Thanks in advance.
Hi, i'm trying to get it working with monit but unfortunatelly looks like monit doesn't run the script btw when i run it myself everything works.
Do you have any idea ?
Perhaps there is my command on monit
check host xxxxxx with address xxxxxx
if failed ping4 then exec "/bin/bash -c /etc/monit/SecondaryIP.sh"
else if succeeded then exec "/bin/bash -c /etc/monit/NativeIP.sh"
can another line be added to cloudflare.conf to monitor two sites? i.e. www.example.com and www.example2.com
thanks,
Greg
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.