A simple Ruby script that takes data from a websocket and looks to see if there is route flapping on the CRXN network.

Marek Küthe b1ca9a075e change header in readme 1 gadu atpakaļ
.gitignore 8879e3c646 Initial commit 1 gadu atpakaļ
.rubocop.yml fbfe63cb18 improve style 1 gadu atpakaļ
LICENSE 8879e3c646 Initial commit 1 gadu atpakaļ
README.md b1ca9a075e change header in readme 1 gadu atpakaļ
detector.rb fbfe63cb18 improve style 1 gadu atpakaļ
main.rb 96fd39c4a5 update readme && split program into two files 1 gadu atpakaļ

README.md

CRXN Flapping Detector

The faye-websocket gem is required:

gem install faye-websocket

You can create a flapping detector and then run it. Running it blocks the current thread. As argument you can specify the websocket URI and the threshold value. If there are more updates per minute than the threshold, a message is displayed.

detector = FlappingDetector.new 'ws://babelweb2.bandura.crxn/ws', 5
detector.run