Skip to content

alanshaw/upmon-sms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Send an SMS message when upmon detects a failure.

Resources

License

Stars

Watchers

Forks

Packages

No packages published