Sha256: 66214568872089d7396b803eec4ae2f12c4d3834846703247120e1c94d9f0139

Contents?: true

Size: 460 Bytes

Versions: 51

Compression:

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

51 entries across 51 versions & 1 rubygems

Version Path
kurchatov-0.4.7 examples/check_file_contains.rb
kurchatov-0.4.6 examples/check_file_contains.rb
kurchatov-0.4.5 examples/check_file_contains.rb
kurchatov-0.4.4 examples/check_file_contains.rb
kurchatov-0.4.3 examples/check_file_contains.rb
kurchatov-0.4.2 examples/check_file_contains.rb
kurchatov-0.4.1 examples/check_file_contains.rb
kurchatov-0.3.8 examples/check_file_contains.rb
kurchatov-0.3.7 examples/check_file_contains.rb
kurchatov-0.3.6 examples/check_file_contains.rb
kurchatov-0.3.5 examples/check_file_contains.rb
kurchatov-0.3.4 examples/check_file_contains.rb
kurchatov-0.3.3 examples/check_file_contains.rb
kurchatov-0.3.2 examples/check_file_contains.rb
kurchatov-0.3.1 examples/check_file_contains.rb
kurchatov-0.3.0 examples/check_file_contains.rb
kurchatov-0.2.9 examples/check_file_contains.rb
kurchatov-0.2.8 examples/check_file_contains.rb
kurchatov-0.2.7 examples/check_file_contains.rb
kurchatov-0.2.6 examples/check_file_contains.rb