Search code examples
rubysensu

Ruby issues while running sensu checks


I am getting the below error while trying to run the sensu checks my ruby version is ruby 2.1.6p336 (2015-04-13 revision 50298) [x86_64-linux-gnu]

/usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- sensu-plugin/check/cli (LoadError) from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' from ./check-load.rb:30:in `main>'

Please guide me on how to fix the issue.


Solution

  • The error cannot load such file -- sensu-plugin/check/cli indicates that the gem sensu-plugin cannot be found.

    Ensure that you have this gem installed on the system you're running the check on - you should be able to install it with:

    gem install sensu-plugin