Sha256: 6f5973772fcf2e0b246c782bed0083ca0fff6e743a7786f91e95749c2b21b034

Contents?: true

Size: 565 Bytes

Versions: 4

Compression:

Stored size: 565 Bytes

Contents

require 'rubygems'
require 'bundler/setup'
require 'rrd-grapher/notifier'

puts "Notifier started."

pool = FiberPool.new(10)

EM::run do
  
  pool.spawn do
    opts = {
      :fiber_pool => pool
    }
  
    RRDNotifier::Server.start(opts) do |s|
      s.register_alarm("*", "ping", "ping_droprate", :max => 5)
      s.register_alarm("*", "uptime", "uptime", :monitor_presence => 2*60)
    
      s.register_alarm("*", "load", "load", :max => 0.01, :index => 1)
      s.register_alarm("*", "memory/*", "memory/active", :monitor_presence => 1)
    end
  end
  
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rrd-grapher-1.0.3 example_notifier/notifier.rb
rrd-grapher-1.0.2 example_notifier/notifier.rb
rrd-grapher-1.0.1 example_notifier/notifier.rb
rrd-grapher-1.0.0 example_notifier/notifier.rb