{"action":"created","issue":{"url":"https://api.github.com/repos/sensu/sensu/issues/1468","repository_url":"https://api.github.com/repos/sensu/sensu","labels_url":"https://api.github.com/repos/sensu/sensu/issues/1468/labels{/name}","comments_url":"https://api.github.com/repos/sensu/sensu/issues/1468/comments","events_url":"https://api.github.com/repos/sensu/sensu/issues/1468/events","html_url":"https://github.com/sensu/sensu/issues/1468","id":183076678,"number":1468,"title":"Handler does not trigger on keepalive threshold or refresh value","user":{"login":"raffraffraff","id":3386372,"avatar_url":"https://avatars.githubusercontent.com/u/3386372?v=3","gravatar_id":"","url":"https://api.github.com/users/raffraffraff","html_url":"https://github.com/raffraffraff","followers_url":"https://api.github.com/users/raffraffraff/followers","following_url":"https://api.github.com/users/raffraffraff/following{/other_user}","gists_url":"https://api.github.com/users/raffraffraff/gists{/gist_id}","starred_url":"https://api.github.com/users/raffraffraff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raffraffraff/subscriptions","organizations_url":"https://api.github.com/users/raffraffraff/orgs","repos_url":"https://api.github.com/users/raffraffraff/repos","events_url":"https://api.github.com/users/raffraffraff/events{/privacy}","received_events_url":"https://api.github.com/users/raffraffraff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-14T15:15:17Z","updated_at":"2016-10-14T16:15:02Z","closed_at":null,"body":"<!--- Provide a general summary of the issue in the Title above -->\r\nWhen a keepalive failure reaches its threshold, no handler action is triggered. The only events that the handler logs to sensu-server.log are 'only handling every 10 occurrences'. Where I expect to see \"Create\" events, I see nothing at all\r\n\r\n## Expected Behavior\r\n<!--- If you're looking for help, please see https://sensuapp.org/support for resources --->\r\n<!--- If you're describing a bug, tell us what should happen -->\r\n<!--- If you're suggesting a change/improvement, tell us how it should work -->\r\nFor my test, I turn off the sensu-client and watch the logs. What I expect to see, is something like this:\r\n\r\n- warning 1\r\n- handler: Create'd WARNING\r\n- warning 2\r\n- handler: only handling every N occurrences\r\n- critical 1\r\n- handler: Create'd CRITICAL\r\n- critical 2\r\n- handler: only handling every N occurrences\r\n- critical 3 - N\r\n- handler: only handling every N occurrences\r\n- critical (N+1)\r\n- handler: Create'd CRITICAL\r\n\r\n## Current Behavior\r\n<!--- If describing a bug, tell us what happens instead of the expected behavior -->\r\n<!--- If suggesting a change/improvement, explain the difference from current behavior -->\r\nThis is what I actually see in my sensu-server.log\r\n\r\n- warning 1 \r\n- warning 2\r\n- handler: only handling every 10 occurrences\r\n- critical 1\r\n- critical 2\r\n- handler: only handling every 10 occurrences\r\n- critical 3\r\n- handler: only handling every 10 occurrences\r\n- critical  4\r\n- handler: only handling every 10 occurrences\r\n- critical  5\r\n- handler: only handling every 10 occurrences\r\n- critical  6\r\n- handler: only handling every 10 occurrences\r\n- critical  7\r\n- handler: only handling every 10 occurrences\r\n- critical  8\r\n- handler: only handling every 10 occurrences\r\n- critical  9\r\n- handler: only handling every 10 occurrences\r\n- critical 10\r\n- handler: only handling every 10 occurrences\r\n- critical 11\r\n- critical 12\r\n- handler: only handling every 10 occurrences\r\n\r\nIn other words, every time I expect to see the handler report a \"Create'd\", I see *nothing*. No logs for silence, filter, occurrences etc. If you want 'full' logs, I can sanitize them and upload to here or pastebin.\r\n\r\n## Possible Solution\r\n<!--- Not obligatory, but suggest a fix/reason for the bug, -->\r\n<!--- or ideas as to the implementation of the addition or change -->\r\n\r\n## Steps to Reproduce (for bugs)\r\n<!--- Provide a link to a live example, or an unambiguous set of steps to -->\r\n<!--- reproduce this bug. Include code or configuration to reproduce, if relevant -->\r\nSensu 0.26.5 with sensu-plugin 1.4.2\r\nKeepalive settings are:\r\n- warning = 40\r\n- critical = 90\r\n- occurrences = 1\r\n- refresh = 300\r\n\r\n1. Turn off sensu-client\r\n2. Tail the sensu-server.log and look for handler \"Create\" actions\r\n\r\n## Context\r\n<!--- How has this issue affected you? What are you trying to accomplish? -->\r\n<!--- Providing context (e.g. links to configuration settings or log data) helps us come up with a solution that is most useful in the real world -->\r\nIf our machines go down in production, we never know about it.\r\n\r\n## Your Environment\r\n<!--- Include as many relevant details about the environment you experienced the bug in -->\r\n* Sensu version used: 0.26.5 with sensu-plugin 1.4.2\r\n* Client is CentOS 6\r\n* Server is running in an Alpine docker container with Ruby 2.3, running on CentOS 7\r\n* Transport and runtime versions (e.g. RabbitMQ 3.1.5-1 on Erlang R14B-04.3)\r\n* Redis 2.4.10"},"comment":{"url":"https://api.github.com/repos/sensu/sensu/issues/comments/253848419","html_url":"https://github.com/sensu/sensu/issues/1468#issuecomment-253848419","issue_url":"https://api.github.com/repos/sensu/sensu/issues/1468","id":253848419,"user":{"login":"raffraffraff","id":3386372,"avatar_url":"https://avatars.githubusercontent.com/u/3386372?v=3","gravatar_id":"","url":"https://api.github.com/users/raffraffraff","html_url":"https://github.com/raffraffraff","followers_url":"https://api.github.com/users/raffraffraff/followers","following_url":"https://api.github.com/users/raffraffraff/following{/other_user}","gists_url":"https://api.github.com/users/raffraffraff/gists{/gist_id}","starred_url":"https://api.github.com/users/raffraffraff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raffraffraff/subscriptions","organizations_url":"https://api.github.com/users/raffraffraff/orgs","repos_url":"https://api.github.com/users/raffraffraff/repos","events_url":"https://api.github.com/users/raffraffraff/events{/privacy}","received_events_url":"https://api.github.com/users/raffraffraff/received_events","type":"User","site_admin":false},"created_at":"2016-10-14T16:15:02Z","updated_at":"2016-10-14T16:15:02Z","body":"Update: enabling the debug logs, I see it log this:\r\n`\"debug\",\"message\":\"handling` event\" ...`\r\n...so I think that the handler itself _may_ be dying before it logs anything... I'll close and delete this if it turns out to be the case.\r\n"}}
{"actor":{"display_login":"raffraffraff"}}