Sha256: 2680240a4dde567ab3a95ead6b898ed527f91e0aa8445a24482be657dbb29859

Contents?: true

Size: 454 Bytes

Versions: 14

Compression:

Stored size: 454 Bytes

Contents

interval 60

default[:base_uri] = 'http://localhost/check'
default[:expression] = 'ERROR'
default[:contains] = false # Contains or not expression
default[:service] = "check_file_contains"

collect do
  event(
    :service => "#{plugin.service} #{plugin.base_uri} #{plugin.expression}",
    :description => "#{plugin.base_uri} contains #{plugin.expression}",
    :metric => rest_get(plugin.base_uri).include?(plugin.expression) == plugin.contains
  )
end

Version data entries

14 entries across 14 versions & 1 rubygems

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