{"action":"created","issue":{"url":"https://api.github.com/repos/jjethwa/icinga2/issues/17","labels_url":"https://api.github.com/repos/jjethwa/icinga2/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/jjethwa/icinga2/issues/17/comments","events_url":"https://api.github.com/repos/jjethwa/icinga2/issues/17/events","html_url":"https://github.com/jjethwa/icinga2/issues/17","id":109689919,"number":17,"title":"Mail notification","user":{"login":"Quentinvarquet","id":7962157,"avatar_url":"https://avatars.githubusercontent.com/u/7962157?v=3","gravatar_id":"","url":"https://api.github.com/users/Quentinvarquet","html_url":"https://github.com/Quentinvarquet","followers_url":"https://api.github.com/users/Quentinvarquet/followers","following_url":"https://api.github.com/users/Quentinvarquet/following{/other_user}","gists_url":"https://api.github.com/users/Quentinvarquet/gists{/gist_id}","starred_url":"https://api.github.com/users/Quentinvarquet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Quentinvarquet/subscriptions","organizations_url":"https://api.github.com/users/Quentinvarquet/orgs","repos_url":"https://api.github.com/users/Quentinvarquet/repos","events_url":"https://api.github.com/users/Quentinvarquet/events{/privacy}","received_events_url":"https://api.github.com/users/Quentinvarquet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-04T16:28:00Z","updated_at":"2015-10-05T10:47:04Z","closed_at":null,"body":"Hello, \r\n\r\nNice work ! :+1: \r\n\r\nI just wanted to know, do you know how to make the mail notifications works ?\r\n\r\nThank you ! "},"comment":{"url":"https://api.github.com/repos/jjethwa/icinga2/issues/comments/145493401","html_url":"https://github.com/jjethwa/icinga2/issues/17#issuecomment-145493401","issue_url":"https://api.github.com/repos/jjethwa/icinga2/issues/17","id":145493401,"user":{"login":"Quentinvarquet","id":7962157,"avatar_url":"https://avatars.githubusercontent.com/u/7962157?v=3","gravatar_id":"","url":"https://api.github.com/users/Quentinvarquet","html_url":"https://github.com/Quentinvarquet","followers_url":"https://api.github.com/users/Quentinvarquet/followers","following_url":"https://api.github.com/users/Quentinvarquet/following{/other_user}","gists_url":"https://api.github.com/users/Quentinvarquet/gists{/gist_id}","starred_url":"https://api.github.com/users/Quentinvarquet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Quentinvarquet/subscriptions","organizations_url":"https://api.github.com/users/Quentinvarquet/orgs","repos_url":"https://api.github.com/users/Quentinvarquet/repos","events_url":"https://api.github.com/users/Quentinvarquet/events{/privacy}","received_events_url":"https://api.github.com/users/Quentinvarquet/received_events","type":"User","site_admin":false},"created_at":"2015-10-05T10:47:04Z","updated_at":"2015-10-05T10:47:04Z","body":"Hello,\r\n\r\nI just tried it. \r\n\r\n- I created a new incoming webhook. I tried it on my server with \r\n\r\n                      * curl -X POST --data-urlencode 'payload={\"text\": \"This is post to <#alerts> and comes from *monkey-bot*.\", \"channel\": \"#si\", \"username\": \"monkey-bot\", \"icon_emoji\": \":monkey_face:\"}' https://hooks.slack.com/services/MY_SLACK_WEBHOOK_PATH\r\n\r\nIt works i can see the message in my channel.\r\n\r\n- I added the slack-service-notification.sh to /etc/icinga2/scripts directory and i configured it like this : \r\n\r\nICINGA_HOSTNAME=\"myserverip\"\r\nSLACK_HOSTNAME=\"hooks.slack.com\"\r\nSLACK_CHANNEL=\"#alerts\"\r\nSLACK_BOTNAME=\"icinga2\"\r\n\r\nI updated : \r\n\r\ncurl --connect-timeout 30 --max-time 60 -s -S -X POST --data-urlencode \"${PAYLOAD}\" https://${SLACK_HOSTNAME}/services/<SLACK_WEBHOOK_PATH>\r\n\r\nwith \r\n\r\ncurl --connect-timeout 30 --max-time 60 -s -S -X POST --data-urlencode \"${PAYLOAD}\" https://${SLACK_HOSTNAME}/services/**MY_SLACK_WEBHOOK_PATH**\r\n\r\n- I added the contents of slack-service-notification.conf to my templates.conf \r\n- I added an entry to my notifications.conf (like in the readme).\r\n\r\nI restarted icinga service. I tried to put off one serevr that is in my host.conf. When Icinga put it Red because it can't ping it, i don't egt any message in slack.\r\n\r\nDo you have an idea ? \r\n\r\nThank you :)"}}