GithubHelp home page GithubHelp logo

check's Introduction

Check

Build Status

Check your server like a boss.

Usage

$ check -c config.json

Config.json

{
  "in_charge": [
    {
      "name": "Travis Bickle",
      "email": "[email protected]"
    },
    {
      "name": "Besty",
      "email": "[email protected]"
    }
  ],
  "reporters": {
    "email": {
      "crendential": {
        "username": "[email protected]",
        "password": "watchmen-passw0rd",
        "smtp": "smtp.example.com:587"
      },
      "formats": {
        "short": "Site {site['name']} is down!",
        "long": "Your site {site['name']} is down since {happened_at}!"
      }
    },
    "cli": {
      "formats": {
        "short": "Site {site['name']} is down!",
        "long": "Check time: {happened_at}"
      }
    }
  },
  "sites": [
    {
      "name": "My Cool Site",
      "url": "http://cool.example.com"
    },
    {
      "name": "Goole is Down",
      "url": "https://google.com"
    }
  ]
}

in_charge

Specify list of people you want to notify when a incident happened here.

Fields:
name description required?
name alias name yes
email receiver's email address no
  • email: If user's email is provided, they will receive a warning email for the incident.

reporters

Enabled report generators. Each generator can customize the incident report format.

Report Format Fields
name description required?
short summarize report yes
long detailed report yes

Each incident report will contain:

  • site name
  • site url
  • incident happened time string, format is ISO8601.
incident_report = {
    'site': {
      'name': 'test',
      'url': 'http://test.domain'
    },
    'happened_at': '2014-11-01T15:42:00.000000+00:00'
}

Email Handler

If you want to use email handler, you should provide email sender's crendential settings.

Fields:
name description required?
username login name yes
password login password yes
smtp smtp server yes

sites

List of sites you want to monitor.

Fields:
name description required?
url site's url yes
name alias name no, defaults to url

TODO

  • refine data structure.
  • add more check methods (like ping).

LICENSE

See LICENSE.md.

check's People

Contributors

bcho avatar

Stargazers

Josh avatar Matías Agustín Méndez avatar Vladimir Ulupov avatar Mark Smith avatar

Watchers

Mark Smith avatar James Cloos avatar  avatar  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.