Skip to content

Latest commit

 

History

History
50 lines (28 loc) · 1.39 KB

README.rst

File metadata and controls

50 lines (28 loc) · 1.39 KB

Zabbix Alert Script SMTP with tls

This script enables the zabbix to send alert email via SMTP with tls. (ie. Gmail, Amazon SES)

https://api.codacy.com/project/badge/Grade/08e4614ac7934d0287b102dc05632e92:target:https://www.codacy.com/app/superdaigo/zabbix-alert-smtp?utm_source=github.com&utm_medium=referral&utm_content=superdaigo/zabbix-alert-smtp&utm_campaign=Badge_Grade

https://coveralls.io/repos/github/superdaigo/zabbix-alert-smtp/badge.svg?branch=master:target:https://coveralls.io/github/superdaigo/zabbix-alert-smtp?branch=master

Requirements

python 2.6 or over

Installation

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'.

Mail Account Settings

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!'

Setup Zabbix Media

Follow zabbix documents to create custom media. https://www.zabbix.com/documentation/2.0/manual/config/notifications/media/script