This script enables the zabbix to send alert email via SMTP with tls. (ie. Gmail, Amazon SES)
python 2.6 or over
Clone source into your zabbix 'alertscripts' directory
$ cd /path/to/zabbix/alertscripts $ git clone https://[email protected]:superdaigo/zabbix-alert-smtp.git
Confirm your system's python path with first line of a script 'zabbix-alert-smtp.sh'.
- Create settings.py and edit::
- $ cd zabbix-alert-smtp $ zabbix-alert-smtp.sh example > settings.py
Confirm to send mail:
$ zabbix-alert-smtp.sh [email protected] 'Subject: Test Mail' 'Message: Ahoy!'
Follow zabbix documents to create custom media. https://www.zabbix.com/documentation/2.0/manual/config/notifications/media/script