Sha256: e38f5751cc425e1ef3cb5160966a9ab9c29e69249125808b9e1528280abca35c

Contents?: true

Size: 237 Bytes

Versions: 14

Compression:

Stored size: 237 Bytes

Contents

require 'net/ping'

interval 60
default[:host] = "localhost"

collect do
  event(
    :service => "ping icmp #{plugin.host}",
    :state => ::Net::Ping::External.new(ip).ping,
    :description => "ping icmp host: #{plugin.host}"
  )
end

Version data entries

14 entries across 14 versions & 1 rubygems

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