{"action":"created","issue":{"url":"https://api.github.com/repos/fail2ban/fail2ban/issues/2146","repository_url":"https://api.github.com/repos/fail2ban/fail2ban","labels_url":"https://api.github.com/repos/fail2ban/fail2ban/issues/2146/labels{/name}","comments_url":"https://api.github.com/repos/fail2ban/fail2ban/issues/2146/comments","events_url":"https://api.github.com/repos/fail2ban/fail2ban/issues/2146/events","html_url":"https://github.com/fail2ban/fail2ban/issues/2146","id":327792396,"node_id":"MDU6SXNzdWUzMjc3OTIzOTY=","number":2146,"title":"Mail action sends email for jail stops but not starts or bans","user":{"login":"dsmithdewarcom","id":9698006,"node_id":"MDQ6VXNlcjk2OTgwMDY=","avatar_url":"https://avatars3.githubusercontent.com/u/9698006?v=4","gravatar_id":"","url":"https://api.github.com/users/dsmithdewarcom","html_url":"https://github.com/dsmithdewarcom","followers_url":"https://api.github.com/users/dsmithdewarcom/followers","following_url":"https://api.github.com/users/dsmithdewarcom/following{/other_user}","gists_url":"https://api.github.com/users/dsmithdewarcom/gists{/gist_id}","starred_url":"https://api.github.com/users/dsmithdewarcom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsmithdewarcom/subscriptions","organizations_url":"https://api.github.com/users/dsmithdewarcom/orgs","repos_url":"https://api.github.com/users/dsmithdewarcom/repos","events_url":"https://api.github.com/users/dsmithdewarcom/events{/privacy}","received_events_url":"https://api.github.com/users/dsmithdewarcom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-05-30T15:50:18Z","updated_at":"2018-06-01T13:46:31Z","closed_at":null,"author_association":"NONE","body":"- Fail2Ban version (including any possible distribution suffixes):0.10.1-1\r\n- OS, including release name/version: Ubuntu 16.04.4\r\n\r\n### The issue:\r\nFollowing upgrade from 0.08.11-1, the action \"%(action_mw)s\" only sending emails for jail stops [reloads], not for jail starts and bans\r\n\r\n#### Steps to reproduce\r\nApply \"action = %(action_mw)s\" to selct jail(s) -- in my case, \"recidive\" and a custom jail, \"apache-adminrsc\"\r\n\r\n#### Expected behavior\r\nemail notification of jail ban|start|stop.\r\n\r\n#### Observed behavior\r\nemail notification of jail stop only.\r\n\r\n#### Any customizations done to /etc/fail2ban/ configuration\r\n(as reported in earlier issues)\r\n\r\n#### Relevant parts of /var/log/fail2ban.log file:\r\n(email notifications aren't logged)"},"comment":{"url":"https://api.github.com/repos/fail2ban/fail2ban/issues/comments/393885591","html_url":"https://github.com/fail2ban/fail2ban/issues/2146#issuecomment-393885591","issue_url":"https://api.github.com/repos/fail2ban/fail2ban/issues/2146","id":393885591,"node_id":"MDEyOklzc3VlQ29tbWVudDM5Mzg4NTU5MQ==","user":{"login":"dsmithdewarcom","id":9698006,"node_id":"MDQ6VXNlcjk2OTgwMDY=","avatar_url":"https://avatars3.githubusercontent.com/u/9698006?v=4","gravatar_id":"","url":"https://api.github.com/users/dsmithdewarcom","html_url":"https://github.com/dsmithdewarcom","followers_url":"https://api.github.com/users/dsmithdewarcom/followers","following_url":"https://api.github.com/users/dsmithdewarcom/following{/other_user}","gists_url":"https://api.github.com/users/dsmithdewarcom/gists{/gist_id}","starred_url":"https://api.github.com/users/dsmithdewarcom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsmithdewarcom/subscriptions","organizations_url":"https://api.github.com/users/dsmithdewarcom/orgs","repos_url":"https://api.github.com/users/dsmithdewarcom/repos","events_url":"https://api.github.com/users/dsmithdewarcom/events{/privacy}","received_events_url":"https://api.github.com/users/dsmithdewarcom/received_events","type":"User","site_admin":false},"created_at":"2018-06-01T13:46:31Z","updated_at":"2018-06-01T13:46:31Z","author_association":"NONE","body":"Whelp, I got a jail start email this morning. After a reload fail (due to un-escaped backslash added to regex) I executed a \"fail2ban-client reload\" command to restart the jail\r\n\r\n![screenshot from 2018-06-01 09-37-55](https://user-images.githubusercontent.com/9698006/40843784-18794f72-6580-11e8-97f0-ad2b0921d848.jpg)\r\n\r\nSo that's apparently working after all. What's confusing is that a jail reload begets a stop email, but not a start email. \r\n\r\nAlso never sent a ban email for the one recidive ban from yesterday as reported above."}}
{"actor":{"display_login":"dsmithdewarcom"}}