Sha256: 46eddb062c17fe64d2b863cbab8406771fa71fe89fa8ec919caa637342d1925e

Contents?: true

Size: 243 Bytes

Versions: 51

Compression:

Stored size: 243 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

51 entries across 51 versions & 1 rubygems

Version Path
kurchatov-0.2.5 examples/ping_icmp.rb
kurchatov-0.2.4 examples/ping_icmp.rb
kurchatov-0.2.3 examples/ping_icmp.rb
kurchatov-0.2.2 examples/ping_icmp.rb
kurchatov-0.2.1 examples/ping_icmp.rb
kurchatov-0.2.0 examples/ping_icmp.rb
kurchatov-0.1.8 examples/ping_icmp.rb
kurchatov-0.1.7 examples/ping_icmp.rb
kurchatov-0.1.6 examples/ping_icmp.rb
kurchatov-0.1.5 examples/ping_icmp.rb
kurchatov-0.1.4 examples/ping_icmp.rb
kurchatov-0.1.3 examples/ping_icmp.rb
kurchatov-0.1.2 examples/ping_icmp.rb
kurchatov-0.1.1 examples/ping_icmp.rb
kurchatov-0.1.0 examples/ping_icmp.rb
kurchatov-0.0.9 examples/ping_icmp.rb
kurchatov-0.0.8.pre.3 examples/ping_icmp.rb
kurchatov-0.0.7.pre.4 examples/ping_icmp.rb
kurchatov-0.0.8.pre.2 examples/ping_icmp.rb
kurchatov-0.0.8.pre.1 examples/ping_icmp.rb