A ruby + redis script to monitor dsl disconnections
Latest commit 9638937 Mar 27, 2012 @thbar Update README.md
Failed to load latest commit information.
.gitignore First working version Mar 27, 2012
README first commit Mar 27, 2012
README.md Update README.md Mar 27, 2012
Rakefile First working version Mar 27, 2012
check_dsl.rb First working version Mar 27, 2012
redis-timeseries.rb First working version Mar 27, 2012

README.md

pull-requests most welcome: please share your improvements.

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