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

Warning messages in handler-chef-node #21

Open
runningman84 opened this issue Sep 9, 2016 · 5 comments
Open

Warning messages in handler-chef-node #21

runningman84 opened this issue Sep 9, 2016 · 5 comments

Comments

@runningman84
Copy link

Can these messages be supressed?

{"timestamp":"2016-09-09T15:09:24.324282+0000","level":"info","message":"handler output","handler":{"type":"pipe","filters":["keepalives","chef","every_3_occurrences","max_300_occurre
nces"],"severities":["warning","critical"],"command":"sudo handler-chef-node.rb","timeout":300,"name":"chef_node"},"output":["W, [2016-09-09T15:09:24.284687 #1379]  WARN -- : Terminat
ing task: type=:finalizer, meta={:method_name=>:__shutdown__}, status=:receiving\n\tCelluloid::TaskFiber backtrace unavailable. Please try `Celluloid.task_class = Celluloid::TaskThrea
d` if you need backtraces here.\n"]
@majormoses
Copy link
Member

@runningman84 what version of the gem are you seeing this on?

@majormoses
Copy link
Member

I would guess it has something with where Celluloid is being booted, but I would honestly have to look more into it to be sure. I saw some odd stuff with that handler that I did not need to do when re-writing the other checks to use ridley.

@runningman84
Copy link
Author

The current release sensu-plugins-chef-3.0.2 seems to have other problems:

warning: event filtering in sensu-plugin is deprecated, see http://bit.ly/sensu-plugin
warning: occurrence filtering in sensu-plugin is deprecated, see http://bit.ly/sensu-plugin
only handling every 60 occurrences: i-0fc808cbdfcf21b40/keepalive
/opt/sensu/embedded/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- hashie/logger (LoadError)
	from /opt/sensu/embedded/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugins-chef-3.0.2/bin/handler-chef-node.rb:48:in `<top (required)>'
	from /opt/sensu/embedded/bin/handler-chef-node.rb:22:in `load'
	from /opt/sensu/embedded/bin/handler-chef-node.rb:22:in `<main>'

@runningman84
Copy link
Author

and this error with enable_deprecated_filtering set to false:

ignoring event -- no handler defined
/opt/sensu/embedded/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- hashie/logger (LoadError)
	from /opt/sensu/embedded/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugins-chef-3.0.2/bin/handler-chef-node.rb:48:in `<top (required)>'
	from /opt/sensu/embedded/bin/handler-chef-node.rb:22:in `load'
	from /opt/sensu/embedded/bin/handler-chef-node.rb:22:in `<main>'

@majormoses
Copy link
Member

hmm there was no change to the handler (there were for 2 of the checks), I am guessing this is due to event filters being deprecated in newer versions of sensu. Will certainly need to be updated. I am not really using this handler myself though so it might be a bit before I get to this. I use aws-cleaner instead to remove nodes.

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

No branches or pull requests

3 participants