Sha256: a4dbb450683ef79af9022155feeb6630ce4e2f79b3c0aef43951cd2fd2ce9a1d

Contents?: true

Size: 361 Bytes

Versions: 14

Compression:

Stored size: 361 Bytes

Contents

require 'net/ping'

default[:host] = "localhost"
default[:port] = 22
default[:timeout] = 5

collect do
  ::Net::Ping::TCP.econnrefused = true
  event(
    :service => "ping tcp #{plugin.host}:#{plugin.port}",
    :state => ::Net::Ping::TCP.new(plugin.host, plugin.port, plugin.timeout).ping,
    :description => "Ping tcp #{plugin.host}:#{plugin.port}"
  )
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
kurchatov-0.0.5.pre5 examples/ping_tcp.rb
kurchatov-0.0.5.pre4 examples/ping_tcp.rb
kurchatov-0.0.5.pre2 examples/ping_tcp.rb
kurchatov-0.0.5.pre1 examples/ping_tcp.rb
kurchatov-0.0.4 examples/ping_tcp.rb
kurchatov-0.0.4d examples/ping_tcp.rb
kurchatov-0.0.4c examples/ping_tcp.rb
kurchatov-0.0.4b examples/ping_tcp.rb
kurchatov-0.0.3 examples/ping_tcp.rb
kurchatov-0.0.3b examples/ping_tcp.rb
kurchatov-0.0.3a examples/ping_tcp.rb
kurchatov-0.0.2 examples/ping_tcp.rb
kurchatov-0.0.2b examples/ping_tcp.rb
kurchatov-0.0.1 examples/ping_tcp.rb