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

Sensu Check failed to run: undefined method `split' for nil:NilClass #23

Open
M-srivatsa opened this issue Nov 8, 2018 · 1 comment

Comments

@M-srivatsa
Copy link

M-srivatsa commented Nov 8, 2018

Check failed to run: undefined method split' for nil:NilClass, ["/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugins-zookeeper-1.5.0/bin/check-zookeeper-reqs.rb:74:in block in run'", "/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugins-zookeeper-1.5.0/bin/check-zookeeper-reqs.rb:65:in open'", "/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugins-zookeeper-1.5.0/bin/check-zookeeper-reqs.rb:65:in run'", "/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugin-1.4.2/lib/sensu-plugin/cli.rb:58:in block in '"]`

@gael-api
Copy link

For posterity.
The check use the 4-letter word "mntr".
Maybe this word is not whitelisted in zookeeper conf...
$ echo mntr | nc 127.0.0.1 2181
mntr is not executed because it is not in the whitelist.

You have to add it in the zookeeper conf file :
$ sudo grep 4lw.commands.whitelist /etc/kafka/zookeeper.properties
4lw.commands.whitelist=srvr, stat, ruok, conf, isro

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

2 participants