github / evenflow Goto Github PK
View Code? Open in Web Editor NEWThis project forked from obfuscurity/evenflow
sFlow to Graphite bridge
License: MIT License
This project forked from obfuscurity/evenflow
sFlow to Graphite bridge
License: MIT License
I could not get this to run. As soon as I get some metrics, in this case from a Vyatta firewall, it tanks with the following errors...
root@host01:# CARBON_PREFIX=network CARBON_URL=carbon://10.x.x.x:2003 STATS_INTERVAL=300 ruby evenflow.rb
evenflow.rb:117: undefined method []' for nil:NilClass (NoMethodError) from evenflow.rb:114:in
each'
from evenflow.rb:114
from evenflow.rb:112:in each' from evenflow.rb:112 from evenflow.rb:111:in
each'
from evenflow.rb:111
from /var/lib/gems/1.8/gems/eventmachine-1.0.0/lib/eventmachine.rb:951:in call' from /var/lib/gems/1.8/gems/eventmachine-1.0.0/lib/eventmachine.rb:951:in
run_deferred_callbacks'
from /var/lib/gems/1.8/gems/eventmachine-1.0.0/lib/eventmachine.rb:187:in run_machine' from /var/lib/gems/1.8/gems/eventmachine-1.0.0/lib/eventmachine.rb:187:in
run'
from evenflow.rb:12
My test host in case sending metrics was a Vyatta firewall. I'm running evenflow on a Ubuntu 12.04 host with stock ruby pkgs, a gem install of most deps before attempting/doing a bundle install of evenflow. Hopefully you can shed some light on the above.
Other -- we know our Vyatta sends appropriate sflow data as pmacctd instance set up as an sflow receiver can see it fine where as sflow2graphite or evenflow just bomb getting sflow from the Vyatta. We know the Vyatta sflow component is pmacct based, so fairly standard in terms of data being sent.
Thanks for your assistance.
If the source IP that is sending metrics to evenflow isn't in DNS, the process crashes. We should just ignore metrics from hosts that are not in DNS and emit a log line instead.
/usr/lib/ruby/1.8/resolv.rb:398:in `getname': DNS result has no information for 172.16.18.254 (Resolv::ResolvError)
from ./evenflow.rb:66
from /data/evenflow/vendor/gems/ruby/1.8/gems/eventmachine-1.0.0/lib/eventmachine.rb:1037:in `call'
from /data/evenflow/vendor/gems/ruby/1.8/gems/eventmachine-1.0.0/lib/eventmachine.rb:1037:in `spawn_threadpool'
from /data/evenflow/vendor/gems/ruby/1.8/gems/eventmachine-1.0.0/lib/eventmachine.rb:1033:in `initialize'
from /data/evenflow/vendor/gems/ruby/1.8/gems/eventmachine-1.0.0/lib/eventmachine.rb:1033:in `new'
from /data/evenflow/vendor/gems/ruby/1.8/gems/eventmachine-1.0.0/lib/eventmachine.rb:1033:in `spawn_threadpool'
from /data/evenflow/vendor/gems/ruby/1.8/gems/eventmachine-1.0.0/lib/eventmachine.rb:1023:in `defer'
from ./evenflow.rb:83
from /data/evenflow/vendor/gems/ruby/1.8/gems/em-sflow-1.0.1/lib/em-sflow/datagram_handler.rb:25:in `call'
from /data/evenflow/vendor/gems/ruby/1.8/gems/em-sflow-1.0.1/lib/em-sflow/datagram_handler.rb:25:in `receive_data'
from /data/evenflow/vendor/gems/ruby/1.8/gems/em-sflow-1.0.1/lib/em-sflow/datagram_handler.rb:24:in `each'
from /data/evenflow/vendor/gems/ruby/1.8/gems/em-sflow-1.0.1/lib/em-sflow/datagram_handler.rb:24:in `receive_data'
from /data/evenflow/vendor/gems/ruby/1.8/gems/eventmachine-1.0.0/lib/eventmachine.rb:187:in `run_machine'
from /data/evenflow/vendor/gems/ruby/1.8/gems/eventmachine-1.0.0/lib/eventmachine.rb:187:in `run'
from ./evenflow.rb:10
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.