github / evenflow

sFlow to Graphite bridge
MIT License
18 stars 11 forks source link

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

Open jfishbaugh opened 10 years ago

jfishbaugh commented 10 years ago

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.

jssjr commented 10 years ago

Hi @jfishbaugh, do you mind filing this against the upstream repo? I'll try to make time to take a look into your issue, but it sounds like something that should be addressed in https://github.com/obfuscurity/evenflow and not the GitHub fork. :beers:

jfishbaugh commented 10 years ago

So sorry, didn't realize I filed against the wrong one. It also looks like this Vyatta may be sending malformed packets after running some sflow decodes.

Thanks none the less.

On Thu, Jun 26, 2014 at 6:56 AM, Scott Sanders notifications@github.com wrote:

Hi @jfishbaugh https://github.com/jfishbaugh, do you mind filing this against the upstream repo? I'll try to make time to take a look into your issue, but it sounds like something that should be addressed in https://github.com/obfuscurity/evenflow and not the GitHub fork. [image: :beers:]

— Reply to this email directly or view it on GitHub https://github.com/github/evenflow/issues/5#issuecomment-47221682.

Jeffrey Fishbaugh | Systems Administrator

720-266-5116 office

jfishbaugh@sovrn.com sovrn.com | sovrn pubhub http://pubhub.sovrn.com/ | @sovrnholdings http://twitter.com/sovrnholdings

http://sovrn.com/