Created
March 26, 2016 13:38
-
-
Save jarosite/6b5aac84cfc8a8b2c08e to your computer and use it in GitHub Desktop.
send email notification from zabbix using AWS SES
This file contains hidden or 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
#!/bin/sh | |
set -e | |
set -x | |
#{ | |
#date | |
export [email protected] | |
export zabbixemailto=$1 | |
export zabbixsubject=$2 | |
export zabbixbody=$3 | |
aws ses send-email --from $smtpemailfrom --to "$zabbixemailto" --text "$zabbixbody" --subject "$zabbixsubject" --region us-west-2 | |
#} 2>&1 | tee /var/log/zabbix_sendmail.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment