Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sensu-plugins-plivo

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sensu-plugins-plivo

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Sensu-Plugins-plivo

Functionality

Files

  • bin/handler-plivosms.rb

Usage

{
  "plivosms":{
    "id":"AC0ds98gd098g",               // auth id
    "token":"a9d8ag98daf98ga9fd8g",     // auth token
    "number":"15551112222",             // the sms will be sent from this number, include country code
    "recipients":{
      "15552223333": {
        "subscriptions":[ "web" ],      // subscriptions that should trigger sms
        "checks":[],                    // checks that should trigger sms
        "cutoff": 1                     // 1 for warning, 2 for critical alerts (default is 2)
      },
      "11111222222": {
        "subscriptions":[ 'all' ],        // 'all' 
        "checks":[ "mysql-alive" ],
        "cutoff": 2
      },
      "11111223333": {                    // not specifying "subscriptions" is same as 'all'
        "checks":[ "check_dns", "check_http" ]
      },
      "11111224444": {                    
        "cutoff": 1                       // "subscriptions" and "checks" are optional, defaults 'all'
      }
    }
  }
}

Example Sensu Core Integration
/etc/sensu/conf.d/plivosms_handler.json
{
  "handlers": {
    "plivosms": {
      "type": "pipe",
      "command": "/opt/sensu/embedded/bin/handler-plivosms.rb"
    }
  },
  "plivosms":{
    "id":"098gf09d8fg",                   // auth id
    "token":"a9d8ag98daf98ga9fd8g",       // auth token
    "number":"15551112222",               // the sms will be sent from this number, include country code
    "recipients":{
      
      "11111223333": {                    // not specifying "subscriptions" is same as 'all'
        "checks":[ "check_dns", "check_http" ]
      },
      "11111224444": {                    
        "cutoff": 1                       // this guys gets all alerts including warnings
      }
    }
  }
}

If you want to make Plivosms a default handler, meaning any check without a specific handler defined will notify Plivosms when there is an alert, open the default handler configuration file and add Plivosms to the set of handlers:

/etc/sensu/conf.d/default_handler.json
{
  "handlers": {
    "default": {
      "type": "set",
      "handlers": [
        "plivosms"
      ]
    }
  }
}

Restart Sensu for your configuration changes to take effect: service sensu-server restart

Installation

Installation and Setup

Notes

FAQs

Package last updated on 18 May 2016

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc