public
Description: A simple Sinatra app that displays the status of your HTTP-connected sites and services.
Homepage:
Clone URL: git://github.com/Narnach/is_the_website_down.git
Narnach (author)
Fri Apr 17 04:03:16 -0700 2009
commit  df24cf8a91de91fb9986d5697590d2d821a9d20b
tree    0c5c53e433c81e31d4634eb28c0be9ceb6c36452
parent  7bd2e2490131c81bb087822d25a2d5aaf425825f
name age message
file .gitignore Loading commit data...
file MIT-LICENSE Tue Mar 17 02:44:39 -0700 2009 Added MIT license [Narnach]
file README.rdoc
file Rakefile
directory bin/
file config.ru
directory config/
directory lib/
directory logs/
directory public/
directory spec/ Tue Mar 17 02:44:39 -0700 2009 Added empty spec for IsTheWebsiteDown [Narnach]
directory tmp/
directory views/
README.rdoc

IsTheWebsiteDown

IsTheWebsiteDown is a simple Sinatra app that displays an overview of websites and if they are down or not. The list of websites can be configured via a text file. See config/sites.txt.example for an example. Rename it to config/sites.txt to start using it.

This is a prototype I threw together in a couple of hours, to see how Sinatra works and how easy or hard a simple monitor page would be to build.

Since version 0.4.0 it works with Phusion Passenger.

Ideas and bugs can be reported at the Github issue tracker.

Requirements

Recent changes

Version 0.4.0

  • Added Phusion Passenger support
    • DRYed up executable by using service.rb
    • Added rackup file and a service file that defines the service
  • Each class has its own file
  • Ignore logs directory

Version 0.3.1

  • Bugfix: Inlined Website#connection_error into Future block code

Version 0.3.0

  • Display a ‘last updated’ time on the frontpage
  • Refactored update check needed logic into a method
  • Moved site status checking to a background thread
  • Added todo list
  • Reset last status code before connecting

Version 0.2.0

  • Sort websites by hostname on load
  • Display monitored URLs by hostname
  • Also catch SocketError, which occurs if a hostname can not be resolved
  • Add missing comma
  • Rescue SystemCallError when Net::HTTP raises it
  • Configured public dir and root dir
  • Added favicon
  • Docfix: typo
  • Docfix: Installation instructions explain how to install/config/start the app
  • Remove rake tasks to build the non-existent gem
  • Docfix: requirements should not be a one-liner

Version 0.1.0

  • Added more URLs to sites.txt.example
  • Detect a missing sites.txt file
  • Added link to footer
  • Upped timeout from 1 to 2 seconds
  • Split CSS into its own file
  • Working prototype
  • Don’t build a gem, run the code directly

Version 0.0.2

  • Actually display the page with sites
  • Added simple overview page with hard-coded google url
  • Updated gem description
  • Updated readme with simple description

Version 0.0.1

  • Created project

Installation

From git

Obtain the source code from github:

  git clone http://github.com/Narnach/is_the_website_down
  cd is_the_website_down
  cp config/sites.txt.example config/sites.txt

Edit config/sites.txt and replace the example with sites you want to monitor. Start the app:

  bin/is_the_website_down

Then open your browser and check localhost:4567

About

IsTheWebsiteDown was created by Wes Oldenbeuving. It is licensed under the MIT license.