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

deregister handler runs twice (send DELETE API request twice too) #3

Open
keitap opened this issue May 11, 2016 · 0 comments
Open

deregister handler runs twice (send DELETE API request twice too) #3

keitap opened this issue May 11, 2016 · 0 comments

Comments

@keitap
Copy link

keitap commented May 11, 2016

Is this expected?

  1. deregister event:create is sent
  2. deregister handler runs
  3. deregister event:resolve is sent (by DELETE request?)
  4. deregister handler runs again

I believe this doesn't harm to anything though.

Logs:

{"timestamp":"2016-05-11T05:56:20.915602+0000","level":"info","message":"processing event","event":{"id":"e9cb838b-e219-416c-a703-41fbbad50624","client":{"name":"hostname","address":"0.0.0.0","subscriptions":["all","web","web_front"],"version":"0.22.1","timestamp":1462946176},"check":{"name":"api_call","output":"delete","process":"init","user":"root","status":1,"handler":"deregister","executed":1462946180,"issued":1462946180,"history":["1"],"total_state_change":0},"occurrences":1,"action":"create","timestamp":1462946180}}
{"timestamp":"2016-05-11T05:56:21.128702+0000","level":"info","message":"processing event","event":{"id":"e1b11546-ab0f-49d4-aac4-e5bc05e7cfa7","client":{"name":"hostname","address":"0.0.0.0","subscriptions":["all","web","web_front"],"version":"0.22.1","timestamp":1462946176},"check":{"name":"api_call","output":"Resolving on request of the API","process":"init","user":"root","status":0,"handler":"deregister","executed":1462946181,"issued":1462946181,"total_state_change":0,"force_resolve":true,"history":["1","0"]},"occurrences":1,"action":"resolve","timestamp":1462946181}}
{"timestamp":"2016-05-11T05:56:21.132083+0000","level":"info","message":"handler output","handler":{"type":"pipe","command":"/opt/sensu/embedded/bin/handler-sensu-deregister.rb","name":"deregister"},"output":["202: Successfully deleted Sensu client: hostname\n"]}
{"timestamp":"2016-05-11T05:56:21.330140+0000","level":"info","message":"handler output","handler":{"type":"pipe","command":"/opt/sensu/embedded/bin/handler-sensu-deregister.rb","name":"deregister"},"output":["202: Successfully deleted Sensu client: hostname\n"]}
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

2 participants