Giter Site home page Giter Site logo

evenflow's People

Contributors

imbriaco avatar jssjr avatar obfuscurity avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

evenflow's Issues

evenflow.rb:117: undefined method `[]' for nil:NilClass (NoMethodError)

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:ineach'
from evenflow.rb:114
from evenflow.rb:112:in each' from evenflow.rb:112 from evenflow.rb:111:ineach'
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:inrun_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:inrun'
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.

Evenflow blows up on DNS failure.

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.