I'm attempting to use this plugin with Sensu 1.2.0, however I'm getting the below exception.
/opt/sensu/embedded/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- rest_client (LoadError)
from /opt/sensu/embedded/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-plugins-couchdb-2.0.0/bin/check-couchdb-alive.rb:28:in `'
from /opt/sensu/embedded/bin/check-couchdb-alive.rb:22:in `load'
from /opt/sensu/embedded/bin/check-couchdb-alive.rb:22:in `'
I'm guessing this is because the 'rest_client' Gem isn't installed, which I've confirmed via the Sensu embedded ruby env:
$ /opt/sensu/embedded/bin/gem list |egrep 'couchdb|rest'
sensu-plugins-couchdb (2.0.0)
So my question is, should this gem have a hard dependency on the 'rest-client' gem?
Edit: As a work-around, the following resolves this issue.
I'm attempting to use this plugin with Sensu 1.2.0, however I'm getting the below exception.
I'm guessing this is because the 'rest_client' Gem isn't installed, which I've confirmed via the Sensu embedded ruby env:
So my question is, should this gem have a hard dependency on the 'rest-client' gem?
Edit: As a work-around, the following resolves this issue.