Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kespineira opened this issue Oct 5, 2022 · 1 comment
Open

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

kespineira opened this issue Oct 5, 2022 · 1 comment

Comments

@kespineira
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants