Sha256: 2c64c775be78e29453d50981f93c7ccfbf0831baa701980c84256da9e805a8c6

Contents?: true

Size: 1.82 KB

Versions: 1

Compression:

Stored size: 1.82 KB

Contents

## Sensu-Plugins-twilio

[![Build Status](https://travis-ci.org/sensu-plugins/sensu-plugins-twilio.svg?branch=master)](https://travis-ci.org/sensu-plugins/sensu-plugins-twilio)
[![Gem Version](https://badge.fury.io/rb/sensu-plugins-twilio.svg)](http://badge.fury.io/rb/sensu-plugins-twilio)
[![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-twilio/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-twilio)
[![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-twilio/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-twilio)
[![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-twilio.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-twilio)

## Functionality

## Files
 * bin/check-num-recordings.rb
 * bin/handler-twiliosms.rb

## Usage

```
{
  "twiliosms":{
    "token":"a9d8ag98daf98ga9fd8g",
    "number":"+111111111",
    "sid":"AC0ds98gd098gf09d8fg",
    "recipients":{
      "+11111111111": {
        "sensu_roles":[ "web-server" ],
        "sensu_checks":[],
        "sensu_level": 1
      },
      "+11111222222": {
        "sensu_roles":[],
        "sensu_checks":[ "mysql-alive" ],
        "sensu_level": 2
      }
    }
  }
}
```
`token`, `sid`, and `number` from twilio account configuration.

`sensu_checks` -> matching checks

`sensu_roles` -> matching subscribers or special values:

* `all` matches all events
* `keepalive` matches keepalive events

`sensu_level` -> minimum matching check return status value

* `0` -> activate for all check statuses: ok+warning+critical+unknown
* `1` -> activate for warning+critical+unknown
* `2` -> activate for critical+unknown
* `3` -> activate for unknown


## Installation

[Installation and Setup](http://sensu-plugins.io/docs/installation_instructions.html)

## Notes

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sensu-plugins-twilio-2.0.0 README.md