{"action":"created","issue":{"url":"https://api.github.com/repos/bosun-monitor/bosun/issues/2186","repository_url":"https://api.github.com/repos/bosun-monitor/bosun","labels_url":"https://api.github.com/repos/bosun-monitor/bosun/issues/2186/labels{/name}","comments_url":"https://api.github.com/repos/bosun-monitor/bosun/issues/2186/comments","events_url":"https://api.github.com/repos/bosun-monitor/bosun/issues/2186/events","html_url":"https://github.com/bosun-monitor/bosun/issues/2186","id":268462205,"number":2186,"title":"bosun master (pre 0.7) won't send notifications to slack, gets http 400 errors instead","user":{"login":"dustyketchum","id":3933135,"avatar_url":"https://avatars0.githubusercontent.com/u/3933135?v=4","gravatar_id":"","url":"https://api.github.com/users/dustyketchum","html_url":"https://github.com/dustyketchum","followers_url":"https://api.github.com/users/dustyketchum/followers","following_url":"https://api.github.com/users/dustyketchum/following{/other_user}","gists_url":"https://api.github.com/users/dustyketchum/gists{/gist_id}","starred_url":"https://api.github.com/users/dustyketchum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dustyketchum/subscriptions","organizations_url":"https://api.github.com/users/dustyketchum/orgs","repos_url":"https://api.github.com/users/dustyketchum/repos","events_url":"https://api.github.com/users/dustyketchum/events{/privacy}","received_events_url":"https://api.github.com/users/dustyketchum/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-10-25T16:21:54Z","updated_at":"2018-03-14T22:05:14Z","closed_at":"2018-03-14T22:05:14Z","author_association":"NONE","body":"Hi, I'm testing master branch and having issues getting notifications to Slack.\r\nAlso please note that another Bosun user has confirmed they see the same problem sending Bosun notifications to Slack on the your support slack channel.\r\nWe are getting notifications to Pagerduty successfully, though I also seen an error regarding email in the logs.\r\nIn my logs I see lots of these errors, which I assume are related to Slack.\r\n`2017/10/24 13:46:19 info: notify.go:179: Batching and sending unknown notifications`\r\n`2017/10/24 13:46:19 info: notify.go:219: Done sending unknown notifications`\r\n`2017/10/24 13:46:19 error: notify.go:192: failed to send alert  to [] Must specify at least one From address and one To address`\r\n`2017/10/24 13:46:19 error: notify.go:42: sending email: Must specify at least one From address and one To address`\r\n`2017/10/24 13:46:19 error: notify.go:48: sending http: bad response on notification POST: 400`\r\n`2017/10/24 13:46:19 info: notify.go:196: relayed email  to [bosun-alerts@fqdn.com] sucessfully. Subject: 47 bytes. Body: 192 bytes.`\r\n`2017/10/24 13:46:19 info: notify.go:196: relayed email  to [bosun-staging@fqdn.pagerduty.com] sucessfully. Subject: 47 bytes.` `Body: 193 bytes.`\r\n\r\nUnfortunately slack is ssl so tcpdump isn't going to get me very far.\r\n\r\nHere's the smtpconf from system.conf:\r\n`[SMTPConf]`\r\n`        EmailFrom = \"errors@fqdn.com\"`\r\n`       Host = \"email-smtp.us-east-1.amazonaws.com:25\"`\r\n`       Username = \"user\"`\r\n`       Password = \"pass\"`\r\n        \r\nHere's the slack config from rules.conf:\r\n`{% raw %}`\r\n`template slack {`\r\n`    body = `{`\r\n`    \"text\": \"{{.Subject}} <{{.Incident}}|view in bosun>\",`\r\n`  }`\r\n`}`\r\n`{% endraw %}`\r\n``\r\n`notification slack_test {`\r\n`  post = https://hooks.slack.com/services/stuff/stuff/stuff`\r\n`  bodyTemplate = body`\r\n`}`\r\n``\r\n`lookup pageable_notifications {`\r\n`  entry env=experiment {`\r\n`    warnNotification = email,experiment_slack`\r\n`    critNotification = email,experiment_slack`\r\n`  }`\r\n`}`\r\n"},"comment":{"url":"https://api.github.com/repos/bosun-monitor/bosun/issues/comments/373190581","html_url":"https://github.com/bosun-monitor/bosun/issues/2186#issuecomment-373190581","issue_url":"https://api.github.com/repos/bosun-monitor/bosun/issues/2186","id":373190581,"user":{"login":"dustyketchum","id":3933135,"avatar_url":"https://avatars0.githubusercontent.com/u/3933135?v=4","gravatar_id":"","url":"https://api.github.com/users/dustyketchum","html_url":"https://github.com/dustyketchum","followers_url":"https://api.github.com/users/dustyketchum/followers","following_url":"https://api.github.com/users/dustyketchum/following{/other_user}","gists_url":"https://api.github.com/users/dustyketchum/gists{/gist_id}","starred_url":"https://api.github.com/users/dustyketchum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dustyketchum/subscriptions","organizations_url":"https://api.github.com/users/dustyketchum/orgs","repos_url":"https://api.github.com/users/dustyketchum/repos","events_url":"https://api.github.com/users/dustyketchum/events{/privacy}","received_events_url":"https://api.github.com/users/dustyketchum/received_events","type":"User","site_admin":false},"created_at":"2018-03-14T22:05:14Z","updated_at":"2018-03-14T22:05:14Z","author_association":"NONE","body":"we solved this ourselves eventually.\r\n"}}
{"actor":{"display_login":"dustyketchum"}}