Launch Week Day 2: Introducing Reports: An Extensible Reporting Framework for Socket Data.Learn More
Socket
Book a DemoSign in
Socket

health-check-rabbitmq

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

health-check-rabbitmq

Get the health of rabbitmq infra

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

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); 
 });

Keywords

health check

FAQs

Package last updated on 18 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts