Created
November 27, 2015 09:17
-
-
Save danhper/e9fa49cbb0e448a28e77 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X POST --data-urlencode 'payload={"channel": "#alerts", "username": "Login alerter", "text": "A user conneed to '"$(hostname -f)"'", "attachments": [{"text": "'"$(w)"'"}]}' https://hooks.slack.com/services/SLACK/WEBHOOK/TOKEN >> /var/slack.log 2>&1 & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment