Skip to content

Instantly share code, notes, and snippets.

@jarosite
Created March 26, 2016 13:38
Show Gist options
  • Save jarosite/6b5aac84cfc8a8b2c08e to your computer and use it in GitHub Desktop.
Save jarosite/6b5aac84cfc8a8b2c08e to your computer and use it in GitHub Desktop.
send email notification from zabbix using AWS SES
#!/bin/sh
set -e
set -x
#{
#date
export smtpemailfrom=support@blablabla.com
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