GithubHelp home page GithubHelp logo

modulexcite / findtheproblems Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tofumatt/findtheproblems

0.0 1.0 0.0 122 KB

A site uptime monitor. Notfies you via Prowl when your sites go down.

License: MIT License

Ruby 100.00%

findtheproblems's Introduction

This library is unsupported and no longer actively maintained. It likely no longer functions.


FindTheProblems

A Simple Ruby -> Prowl Site Monitor

Prowl is a nifty iPhone App -- it's basically a Growl client for the iPhone. It's got a neato web API that allows pretty much any program to send it notifications. Site monitoring seems like a pretty good use of this capability. Setup a cron job and you can get by-the-minute notifications on an array of sites that you are responsible for maintaining.

Setup

Required Settings

This is a pretty barebones little script; you only need to edit:

  • Sites_To_Check -- An array of URLs to check. HTTP and HTTPS work fine as long as your Ruby install supports 'em.
  • Prowl_API_Keys -- An array of at least one (1) and up to five (5) Prowl API Keys. You can get your API Key by signing into the Prowl Site.

Optional Settings

  • Priority -- Prowl notification priority. Can be an integer between -2 (lowest priority) and 2 (emergency). Set to 2 by default.
  • Provider_Key -- A Prowl Provider key. Find out more about these on the Prowl API Page. Empty by default.
  • Max_Redirects -- If the page redirects you, how many redirects should you follow before you give up? You'll want this to be at least 1 unless you're positive that all of your URLs never do 3xx redirects. Set to 3 by default.

Usage

You can run this script from the command-line and it'll check your sites right away. However, you'll probably want to setup a cron job or some other sort of scheduled task to automatically check your sites for you on a regular basis. On a UNIX machine, you can simply type: crontab -e to open up your cron schedule. To check your sites every five minutes, add this line to your crontab:

0,5,10,15,20,25,30,35,40,45,50,55 * * * * /path/to/findtheproblems.rb

License

This program is free software; it is distributed under an MIT License.


Copyright (c) 2009 Matthew Riley MacPherson.

findtheproblems's People

Contributors

tofumatt avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.