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