error on check-chef-server
lcc2207 opened this issue · 5 comments
I am seeing the following error
Check failed to run: type mismatch: String given, ["/etc/sensu/plugins/check-chef-server.rb:47:in =~'", "/etc/sensu/plugins/check-chef-server.rb:47:in
block in run'", "/etc/sensu/plugins/check-chef-server.rb:46:in each_line'", "/etc/sensu/plugins/check-chef-server.rb:46:in
run'", "/opt/sensu/embedded/lib/ruby/gems/2.2.0/gems/sensu-plugin-1.2.0/lib/sensu-plugin/cli.rb:56:in `block in class:CLI'"]
if I change this line
if proc =~ '^(fail|down|warning)' back to if proc.match('^(fail|down|warning)') it seems to work ok.
@lcc2207 What version of Chef are you using?
Chef server 12.5 on Ubuntu.. Same result on Chef server 12.4 on CentOS
@tas50 Thoughts on this. I am looking into it as well.
This seems to work ok
if proc =~ /fail|down|warning/
Looks like this was resolved in #15 which will go out in next release.