upmon-mail
v1.0.0
Published
Send an email when upmon detects a failure
Downloads
17
Maintainers
Readme
upmon-mail
Send an email message when upmon detects a failure.
Getting started
npm install -g upmon upmon-mail
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/"] }, "mail": { // Email from address "from": "[email protected]", // Email to address(es) "to": ["[email protected]"], // Nodemailer transport options // http://www.nodemailer.com/ "transport": { "service": "", "auth": { "user": "", "pass": "" } } } }
upmon | upmon-mail
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 mail = require('upmon-mail')
var sms = require('upmon-sms')
upmon().pipe(mail()).pipe(sms()).pipe(process.stdout)
pm2 start monitor.js