Giter Club home page Giter Club logo

statuscake-cloudflare's Introduction

StatusCake-CloudFlare

Using Statuscake's monitoring and Cloudflare to achieve high availability.

A PHP web hook to handle down notifications from Statuscake. If a Down notification is received, it'll change the A record of a domain on cloudflare to a backup IP set by you.



License: MIT
Dependencies: Web Server, PHP, php-curl lib

Setup:

  1. I suggest you rename the php file to something obscure.
  2. Add / change the global vars section. It consists of credentials and other information that needs to be modified to your needs.
  3. Upload this script to the desired server, make sure the script is accessible via the internet.
  4. On StatusCake:
    Go into group contacts and add the ping URL. This URL is the URL of your PHP script that you just uploaded to your server in step 3.
    Make sure the domains you're monitoring has the correct contact group (a group that contains the ping URL).
  5. It's recommended that you have more than the PHP script as an alert type, so you can switch it back to the primary server once it's up. With this setup, a website shouldn't have a downtime of more than ~6 minutes, assuming your DNS provider does not cache queries.

    You can reach me on twitter .

    If you're looking for UptimeRobot + Cloudflare, you can find it here .

statuscake-cloudflare's People

Contributors

blackdotsh avatar

Watchers

Leonir avatar

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.