bin/metrics-entropy.rb in sensu-plugins-entropy-checks-0.0.3 vs bin/metrics-entropy.rb in sensu-plugins-entropy-checks-1.0.0
- old
+ new
@@ -39,10 +39,10 @@
default: "#{Socket.gethostname}.entropy"
def run
File.open('/proc/sys/kernel/random/entropy_avail', 'r').each_line do |line|
entropy = line.strip.split(/\s+/).shift
- output "#{config[:scheme]}", entropy
+ output config[:scheme].to_s, entropy
end
ok
end
end