lib/riemann/tools/dir_space.rb in riemann-tools-1.10.0 vs lib/riemann/tools/dir_space.rb in riemann-tools-1.11.0
- old
+ new
@@ -13,9 +13,11 @@
opt :warning, 'Dir space warning threshold (in bytes)', type: Integer
opt :critical, 'Dir space critical threshold (in bytes)', type: Integer
opt :alert_on_missing, 'Send a critical metric if the directory is missing?', default: true
def initialize
+ super
+
@dir = opts.fetch(:directory)
@service_prefix = opts.fetch(:service_prefix)
@warning = opts.fetch(:warning, nil)
@critical = opts.fetch(:critical, nil)
@alert_on_missing = opts.fetch(:alert_on_missing)