sensu-plugins / sensu-plugins-elasticsearch

This plugin provides native ElasticSearch instrumentation for monitoring and metrics collection, including: service health and metrics for cluster, node, and more.
http://sensu-plugins.io
MIT License
32 stars 77 forks source link

check-es-query-count warning: constant ::Fixnum is deprecated #181

Open kespineira opened 1 year ago

kespineira commented 1 year ago

Hello,

I'm using your plugins 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 hope you can help me.

sensu-discourse commented 1 year ago

This issue has been mentioned on Sensu Community. There might be relevant details there:

https://discourse.sensu.io/t/sensu-plugins-sensu-plugins-elasticsearch-warning-constant-fixnum-is-deprecated/3003/1