Skip to content

All sorts of warning messages with check-chef-nodes.rb #29

@dsemarketer

Description

@dsemarketer

Running Sensu 0.29.0-11 on Windows, embedded Ruby (2.4.0), sensu-plugins-chef v3.0.2

When running the check the following is outputted:

c:/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/faraday-0.9.2/lib/faraday/request/retry.rb:30: warning: constant ::Fixnum is deprecated
c:/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/faraday-0.9.2/lib/faraday/request/retry.rb:30: warning: constant ::Fixnum is deprecated
c:/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/faraday-0.9.2/lib/faraday/request/retry.rb:30: warning: constant ::Fixnum is deprecated
c:/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/faraday-0.9.2/lib/faraday/request/retry.rb:30: warning: constant ::Fixnum is deprecated
W, [2017-07-18T10:16:55.636371 #5764] WARN -- : You are setting a key that conflicts with a built-in method Hashie::Mash#frozen? defined in Kernel. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
W, [2017-07-18T10:16:55.686058 #5764] WARN -- : You are setting a key that conflicts with a built-in method VariaModel::Attributes#frozen? defined in Kernel. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
W, [2017-07-18T10:16:55.696250 #5764] WARN -- : You are setting a key that conflicts with a built-in method VariaModel::Attributes#frozen? defined in Kernel. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
W, [2017-07-18T10:16:55.914978 #5764] WARN -- : You are setting a key that conflicts with a built-in method VariaModel::Attributes#default defined in Hash. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
W, [2017-07-18T10:16:55.914978 #5764] WARN -- : You are setting a key that conflicts with a built-in method VariaModel::Attributes#default defined in Hash. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
(Then the check's output)

This began with updating Sensu to 0.29.0-11, most likely its with their update to Ruby 2.4.0. Previously running Sensu 0.26.0 with the v0.0.6 of this plugin had no issues. 0.0.6 throws install errors now as does the 1.x and 2.x versions. Again, probably due to Ruby 2.4.0

Any way to either fix or suppress these messages?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions