lib/riemann/babbler/plugins/net.rb in riemann-babbler-0.0.5 vs lib/riemann/babbler/plugins/net.rb in riemann-babbler-0.0.6
- old
+ new
@@ -26,10 +26,10 @@
status = Hash.new
f.split("\n").inject({}) do |s, line|
if line =~ /\s*(\w+?):\s*([\s\d]+)\s*/
iface = $1
WORDS.map do |service|
- "#{iface} #{service}"
+ "#{plugin.service} #{iface} #{service}"
end.zip(
$2.split(/\s+/).map { |str| str.to_i }
).each do |service, value|
status.merge!({service => value})
end