1
我有sensu服務器和sensu-client安裝在一臺機器上(centos)並通過gem安裝插件。配置敏感檢查時出現紅寶石問題
當我從命令行運行check_ping.rb
時,一切都很好,但是當我在/etc/sensu/conf.d/
中配置相同的檢查並檢查UI時,我收到了這個ruby問題;
gem install sensu-plugins-network-checks
我已經安裝的1.9.3版本
紅寶石和配置EMBEDDED_RUBY=true
當我檢查UI下面的錯誤,我面對
/opt/sensu/embedded/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- net/ping (LoadError)
from /opt/sensu/embedded/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/rvm/gems/ruby-1.9.3-p551/gems/sensu-plugins-network-checks-0.2.4/bin/check-ping.rb:31:in `<main>'
Sensu::Plugin::CLI: ["Not implemented! You should override Sensu::Plugin::CLI#run."]
誰能幫有了這個?