{"action":"created","issue":{"url":"https://api.github.com/repos/naparuba/shinken/issues/1721","labels_url":"https://api.github.com/repos/naparuba/shinken/issues/1721/labels{/name}","comments_url":"https://api.github.com/repos/naparuba/shinken/issues/1721/comments","events_url":"https://api.github.com/repos/naparuba/shinken/issues/1721/events","html_url":"https://github.com/naparuba/shinken/issues/1721","id":109269676,"number":1721,"title":"Notifications not being sent after downtime","user":{"login":"marcelocarlosbr","id":582793,"avatar_url":"https://avatars.githubusercontent.com/u/582793?v=3","gravatar_id":"","url":"https://api.github.com/users/marcelocarlosbr","html_url":"https://github.com/marcelocarlosbr","followers_url":"https://api.github.com/users/marcelocarlosbr/followers","following_url":"https://api.github.com/users/marcelocarlosbr/following{/other_user}","gists_url":"https://api.github.com/users/marcelocarlosbr/gists{/gist_id}","starred_url":"https://api.github.com/users/marcelocarlosbr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcelocarlosbr/subscriptions","organizations_url":"https://api.github.com/users/marcelocarlosbr/orgs","repos_url":"https://api.github.com/users/marcelocarlosbr/repos","events_url":"https://api.github.com/users/marcelocarlosbr/events{/privacy}","received_events_url":"https://api.github.com/users/marcelocarlosbr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-01T10:05:35Z","updated_at":"2015-10-14T09:23:02Z","closed_at":null,"body":"The issue occurs when a host or service is in a critical state and then set to downtime. During the downtime, the host/service returns to OK. After the downtime expires, when the host/service goes to critical, notifications are not being sent. Finally, when it returns to OK, notifications are sent normally.\r\n\r\nThe sequence of events to replicate the issue is:\r\n\r\n1. Host/Service changes to CRITICAL (HARD) - notification sent\r\n2. Host/Service is set to downtime\r\n3. During the downtime, Host/Service goes back to OK (HARD) - no notification\r\n4. Downtime expires\r\n5. Host/Service changes to CRITICAL (HARD) - no notification\r\n6. Host/Service changes to OK (HARD) - notification sent\r\n\r\nWhen event 5 takes place, the expected behaviour would be a notification being sent, which doesn't happen.\r\n\r\nI've managed to replicate the issue in Shinken 2.0.3 and 2.4.1 by repeating the steps above. Python version 2.6.6 (CentOS 6.x)."},"comment":{"url":"https://api.github.com/repos/naparuba/shinken/issues/comments/147987326","html_url":"https://github.com/naparuba/shinken/issues/1721#issuecomment-147987326","issue_url":"https://api.github.com/repos/naparuba/shinken/issues/1721","id":147987326,"user":{"login":"geektophe","id":1968679,"avatar_url":"https://avatars.githubusercontent.com/u/1968679?v=3","gravatar_id":"","url":"https://api.github.com/users/geektophe","html_url":"https://github.com/geektophe","followers_url":"https://api.github.com/users/geektophe/followers","following_url":"https://api.github.com/users/geektophe/following{/other_user}","gists_url":"https://api.github.com/users/geektophe/gists{/gist_id}","starred_url":"https://api.github.com/users/geektophe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geektophe/subscriptions","organizations_url":"https://api.github.com/users/geektophe/orgs","repos_url":"https://api.github.com/users/geektophe/repos","events_url":"https://api.github.com/users/geektophe/events{/privacy}","received_events_url":"https://api.github.com/users/geektophe/received_events","type":"User","site_admin":false},"created_at":"2015-10-14T09:23:02Z","updated_at":"2015-10-14T09:23:02Z","body":"Does it happen with a fresh install, or with already populated retention data ?\r\n\r\nI already got problems with corrupted retention data leading to strange behaviour. Purging them fixed the issue."}}