Sha256: 36a8a2293a35481e4cf1202e9db83cfb7e3f24e6704a7b68b094a892a85ac119

Contents?: true

Size: 260 Bytes

Versions: 14

Compression:

Stored size: 260 Bytes

Contents

default[:file] = '/notexists'

collect do
  event(
    :service => "#{name} #{plugin.file}",
    :metric => (unixnow - File.stat(plugin.file).mtime.to_i).abs.to_f/60,
    :description => "File #{plugin.file} age",
    :warning => 1,
    :critical => 5
  )
end

Version data entries

14 entries across 14 versions & 1 rubygems

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