Closed slwst closed 7 years ago
If I remember correctly no default handler exists and you have to specify the handler on the check. docker-sensu should support handlers identically to sensu not in docker assuming the checks and handlers exist and are configured correctly.
You're absolutely right. the "Default" handler is a concept from the chef sensu LWRP.
Made a few changes, working great now. Thank you very much!
@Viszeral np, glad I could help. I'm going to close this issue out.
Loading a check which intentionally fails yields expected client output, but it doesn't appear that the server container sees the failure or tries to invoke the correct handler.
I have this check:
I see the sensu client log reflect that the check has failed:
however the server log never reflects this failure, and doesn't even attempt to invoke the default handler:
my server block in docker-compose is configured as:
and my default handler is configured as:
the mailer.rb and mailer.json are mapped directly into the handlers directory.
What am I doing wrong? I'd be happy to extend the docker-sensu documentation to cover handlers and handler usage once I figure this out.
Thank you!