lib/riemann/babbler/plugin.rb in riemann-babbler-0.2.8 vs lib/riemann/babbler/plugin.rb in riemann-babbler-0.3.0
- old
+ new
@@ -19,10 +19,11 @@
def initialize
@configatron = $configatron
@storage = Hash.new
init
+ self.send run
end
def log
@logger ||= $logger
end
@@ -101,10 +102,10 @@
end
end
# Переодически вызываемое действие
def tick
- posted_hash = hash_to_post
+ posted_hash = collect
posted_hash.each_key do |service|
case service
when Hash
report({
:service => plugin.service + " " + service,