health-check-rabbitmq

Get the health of rabbitmq infra

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
health-check-rabbitmq
100.0.28 years ago8 years agoMinified + gzip package size for health-check-rabbitmq in KB

Readme

Health Check Redis

CI

Circle CI

Install

$ npm install health-check-rabbitmq

Usage

var healthCheckRabbitMq = require('health-check-rabbitmq');

healthCheckRabbitMq.do([
{
  host: '127.0.0.1',
  port: 6379
},
{
  host: 'wrong host',
  port: 6379
}])
 .then(function(result){
    console.log(result); 
    
    /* 
      { 
        health: false,
        success: 1,
        error: 1,
        details: 
          [ 
            { 
              name: '127.0.0.1:6379', 
              health: true, 
              message: '' 
            },
            { 
              name: 'wrong host:6379',
              health: false,
              message: 'Redis connection to wrong host:6379 failed - getaddrinfo ENOTFOUND wrong host wrong host:6379' 
            } 
          ] 
      }
    */
 })
 .catch(function(error){
    console.log(error); 
 });