[sensu-plugins/sensu-plugins-elasticsearch] warning: constant ::Fixnum is deprecated


I’m using the asset sensu-plugins/sensu-plugins-elasticsearch with Sensu Go and the check-es-query-count.rb return a warning:

/var/cache/sensu/sensu-agent/4cd5f5f78eb0528af3d94577321839eba4e82ef34ad9ed8b4873dee49a32a2be41f7c0f34b901b0101b1556530cb1bdae96a858c4726c75dbdbf106586c76962/lib/ruby/2.4.0/gems/elasticsearch-transport-1.0.18/lib/elasticsearch/transport/transport/base.rb:52: warning: constant ::Fixnum is deprecated
/var/cache/sensu/sensu-agent/4cd5f5f78eb0528af3d94577321839eba4e82ef34ad9ed8b4873dee49a32a2be41f7c0f34b901b0101b1556530cb1bdae96a858c4726c75dbdbf106586c76962/lib/ruby/2.4.0/gems/elasticsearch-transport-1.0.18/lib/elasticsearch/transport/transport/base.rb:54: warning: constant ::Fixnum is deprecated

I’m also using the ruby-runtime asset but I don’t know how to remove the warnings without having to put the RUBYOPT=-W0 option in the command as follows, RUBYOPT=-W0 check-es-query-count.rb <options>.

I have opened an issue in your repository more than 1 week ago but I still have not received a response.

I hope you can help me.

@kespineira so any plugin in the sensu-plugins Github org is community-maintained. While we can shepherd those requests and do make contributions, our community maintainers are ultimately the folks who help “keep the lights on” when it comes to the plugins and do so in addition to their full time jobs, so it may take some time for them to review any issues. This may be something that @jspaleta or @thoward can take a look at in the mean time.