Git Product home page Git Product logo

health-checker's Introduction

Health Checker

Build Status Code Analysis

Health checker for the following applications: HTTP servers, JDBC databases, LDAP servers, MongoDB servers, Solr servers, ElasticSearch servers.

Prerequisites

Installation

  • Create install directory:
sudo mkdir /opt/health-checker
  • Download necessary files:
sudo wget https://raw.githubusercontent.com/chrisipa/health-checker/master/bin/health-checker -O /opt/health-checker/health-checker
sudo wget https://papke.it/jenkins/job/health-checker/lastStableBuild/de.papke%24health-checker/artifact/de.papke/health-checker/1.0.3/health-checker-1.0.3.jar -O /opt/health-checker/health-checker.jar
  • Make starter script executable:
sudo chmod +x /opt/health-checker/health-checker

Usage

  • Specify a supported type as environment variable (possible values: elasticsearch, http, jdbc, ldap, mongo, solr):
export HEALTH_CHECKER_TYPE="http"
  • Show help text:
/opt/health-checker/health-checker

usage: health-checker
 -c,--connect-timeout <arg>    The connection timeout of the HTTP server
                               (in milliseconds) [default: 5000]
 -d,--post-data <arg>          The data to add for the HTTP POST request
 -h,--header <arg>             The header to add for the HTTP request
 -l,--url <arg>                The url of the HTTP server
 -m,--method <arg>             The HTTP method to use [default: get]
 -p,--password <arg>           The username for the HTTP server
 -r,--response-timeout <arg>   The response timeout of the HTTP server (in
                               milliseconds) [default: 10000]
 -s,--status-code <arg>        The expected status code of the HTTP
                               response [default: 200]
 -u,--username <arg>           The username for the HTTP server
 -x,--pattern <arg>            The regex pattern to search in the HTTP
                               response text [default: .*]
  • Specify necessary parameters (dependend on HEALTH_CHECKER_TYPE)

health-checker's People

Contributors

chrisipa avatar florianflad avatar

Watchers

James Cloos 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.