0.0
No commit activity in last 3 years
No release in over 3 years
Last Resort is a Ruby gem for monitoring email sent by automated services (monit, logging packages, external ping services, etc.) and calling your phone to tell you about the important ones. Using free and trial tiers available from context.io, twilio and heroku, Last Resort can be deployed in a reliable environment and perform up to 1500 emergency calls for free.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
~> 2.9.0
~> 1.8.5

Runtime

~> 1.6
~> 2.1
~> 0.4
~> 1.3
 Project Readme

Last Resort is a Ruby gem for monitoring email sent by automated services (monit, logging packages, external ping services, etc.) and calling your phone to tell you about the important ones. Using free and trial tiers available from context.io, twilio and heroku, Last Resort can be deployed in a reliable environment and perform up to 1500 emergency calls for free.

Requirements

  • Ruby 1.9.x
  • Accounts with context.io, twilio and optionally heroku, but don't worry -- our commandline utility will help you through the process.
  • Git (if you're deploying to Heroku)

Installation

$ gem install last-resort

Getting started

$ last-resort new my-awesome-project

This will create a new monitoring project with a sample my-awesome-project/schedule.rb file, and all that's needed to get up and running on a Rack server (or Heroku) quickly.

Example schedule.rb file

configure :from_env

# DEFINE YOUR CONTACTS

contact :ian, "416-123-1234"
contact :scott, "416-321-4321"
contact :victor, "416-123-4321"

# DEFINE WHAT EMAILS YOU WANT TO WATCH FOR

match :subject => /Server down/ # external ping service
match :subject => /Resource limit matched/ # monit

# DEFINE WHO TO CALL AND WHEN

between 19..22, :on => [:wednesday, :thursday] do
  call :victor
end

between :off_hours, :on => :weekdays do
  call :scott
end

between :all_hours, :on => :weekends do
  call [:ian, :scott, :victor]
end

Roadmap

If there is sufficient demand, we plan on adding more complicated schedules.

Credit

Victor Mota (@vimota)
Scott Hyndman (@scotthyndman)
Ian Ha (@ianpha)