Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

metrics-mongodb.rb doesn't work with mongo 4.2.3 #67

Open
jindraj opened this issue Feb 5, 2020 · 0 comments
Open

metrics-mongodb.rb doesn't work with mongo 4.2.3 #67

jindraj opened this issue Feb 5, 2020 · 0 comments

Comments

@jindraj
Copy link

jindraj commented Feb 5, 2020

It won't work probably with any 4.2.x minor version. The same check against 4.0.2 works.

Check failed to run: undefined method `[]' for nil:NilClass, ["/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-plugins-mongodb-2.1.0/lib/sensu-plugins-mongodb/metrics.rb:321:in `server_metrics'", "/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-plugins-mongodb-2.1.0/bin/metrics-mongodb.rb:121:in `run'", "/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-plugin-2.0.1/lib/sensu-plugin/cli.rb:58:in `block in <class:CLI>'"]

I traced the issue to metrics.repl.preload and metrics.storage.*

@jindraj jindraj mentioned this issue Feb 5, 2020
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant