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.4.7 examples/ping_icmp.rb
kurchatov-0.4.6 examples/ping_icmp.rb
kurchatov-0.4.5 examples/ping_icmp.rb
kurchatov-0.4.4 examples/ping_icmp.rb
kurchatov-0.4.3 examples/ping_icmp.rb
kurchatov-0.4.2 examples/ping_icmp.rb
kurchatov-0.4.1 examples/ping_icmp.rb
kurchatov-0.3.8 examples/ping_icmp.rb
kurchatov-0.3.7 examples/ping_icmp.rb
kurchatov-0.3.6 examples/ping_icmp.rb
kurchatov-0.3.5 examples/ping_icmp.rb
kurchatov-0.3.4 examples/ping_icmp.rb
kurchatov-0.3.3 examples/ping_icmp.rb
kurchatov-0.3.2 examples/ping_icmp.rb
kurchatov-0.3.1 examples/ping_icmp.rb
kurchatov-0.3.0 examples/ping_icmp.rb
kurchatov-0.2.9 examples/ping_icmp.rb
kurchatov-0.2.8 examples/ping_icmp.rb
kurchatov-0.2.7 examples/ping_icmp.rb
kurchatov-0.2.6 examples/ping_icmp.rb