Getting Error in events after translating checks from sensu core to Sensu go

I translated checks from sensu-core to sensu-go, few checks are working as expected but for some checks like

  1. check-disk-space.json which has command “/opt/sensu/plugins/check-disk.rb -w 85 -c 95
  2. disk-metrics.json which has command “/opt/sensu/plugins/metrics-disk.rb --scheme

I am getting below errors


/opt/sensu/embedded/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require’: cannot load such file – sys/filesystem (LoadError)


/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require’: cannot load such file – sensu-plugin/metric/cli (LoadError)

Please help me on this.

Issue got resolved by adding embedded ruby path in rb files.