Skip to content

thbar/dsl-uptime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A ruby + redis script to monitor dsl disconnections

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published