GithubHelp home page GithubHelp logo

novakin / dns-failover-cloudflare-monit Goto Github PK

View Code? Open in Web Editor NEW
21.0 4.0 9.0 6 KB

Setup DNS Failover for Cloudflare with monit - https://www.noobunbox.net

License: MIT License

Shell 100.00%

dns-failover-cloudflare-monit's People

Contributors

novakin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dns-failover-cloudflare-monit's Issues

https:// website issues

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!

Little help with an error

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.

  1. Where do I get the record_identifier value from ?
  2. I removed record_identifier line (until I find where to get that value because with a bad value it gives a different error) and tried to run /tobackup.sh and /tomain.sh however I get the following error:

{"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.

Monit config doesnt work, on my monit.

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"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.