Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Monit + Sinatra + Monk + SQLite + Mustache = multi-site dowtime alert app
Ruby Shell CSS
tree: c0c13f1948

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
config
db
log
monitrc
public
script
tasks
test
vendor
.gitignore
Capfile
LICENSE
README.md
Rakefile
Thorfile
config.ru
dependencies
init.rb

README.md

Watch-Dog

This is small Sinatra app for managing a set of monit checks on remote web sites.

It allows you specify the URL you want to monitor, text that should be on the page, how many failure cycles are required for to report as the site being down, and an email address to send the alert to.

There is a very basic web interface that allows to to create and edit which sites you're monitoring and reports on the status of the sites you're monitoring.

Requirements

Setup

  1. Copy config/database.example.yml to config/database.yml and fill in the correct settings
  2. Copy config/settings.example.yml to config/settings.yml and fill in the correct settings
  3. Copy config/deploy.example.rb to config/deploy.rb and make the necessary changes
  4. Add this line to your monit control file:

    include /path/to/watch-dog/monitrc/**/*.monitrc

Copyright (c) 2009 Viget Labs. See LICENSE for details.

Something went wrong with that request. Please try again.