Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A ruby + redis script to monitor dsl disconnections

tree: a99408e845

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.md

A quick ruby+redis script to monitor DSL disconnections using time series with redis zadd/zrangebyscore.

Tested on Mac OS X with the stock Ruby 1.8.7 Snow Leopard install.

How to install

  • make sure you have redis up: brew install redis (I set it up to start at boot, too)
  • install the required gems for your system ruby (rvm system if you use rvm)
    • gem install redis
  • set up a cron with crontab -e
* * * * * cd /Users/thbar/git/uptime && ruby check_dsl.rb >> check_dsl.log 2>&1

TODO

  • plug a graphical front-end

Credits

Based on redis timeseries work by Paul Bellamy and antirez.

License

MIT

Something went wrong with that request. Please try again.