sensu-plugins / sensu-plugins-zookeeper

Sensu Zookeeper Plugins
http://sensu-plugins.io
MIT License
3 stars 18 forks source link

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

Open M-srivatsa opened 6 years ago

M-srivatsa commented 6 years ago

Check failed to run: undefined methodsplit' 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:inopen'", "/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:inblock in '"]`

gael-api commented 1 year ago

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