upmon-sms

1.0.0 • Public • Published

upmon-sms Build Status Dependency Status Coverage Status

Send an SMS message when upmon detects a failure.

Getting started

  1. npm install -g upmon upmon-sms

  2. Create a new $HOME/.upmonrc file and add config:

    {
      "ping": {
        // Time in ms between pings
        "interval": 5000,
        // URL's of services to ping
        "services": ["http://localhost:8000/"]
      },
      "sms": {
        // SMS provider config
        "messagebird": {
          "accessKey": "live_hy6ggbrRf4Bvfe48GGip8MtJM",
          "originator": "447000000000",
          "recipients": "447000000000"
        }
      }
    }
  3. upmon | upmon-sms

Supported providers

Please PR and add more!

Build your own monitor

Want to run upmon from guvnor or pm2?

Create a new project, add a .upmonrc config file, install the upmon modules you need, and pipe them together!

monitor.js

var upmon = require('upmon')
var sms = require('upmon-sms')
var mail = require('upmon-mail')
 
upmon().pipe(sms()).pipe(mail()).pipe(process.stdout)
pm2 start monitor.js

Package Sidebar

Install

npm i upmon-sms

Weekly Downloads

9

Version

1.0.0

License

ISC

Last publish

Collaborators

  • alanshaw