Place the notify.events.sh script to the AlertScriptPath
directory specified
in the Zabbix configuration file (e.g. /usr/lib/zabbix/alertscripts/
)
Set the execute permission to this script:
chmod +x notify.events.sh
Go to the "Administration" -> "Media types" section and add the following parameters to create a media-type:
Type:
Script
Script name:
notify.events.sh
Script parameters:
{ALERT.SENDTO}
{ALERT.SUBJECT}
{ALERT.MESSAGE}
{TRIGGER.NSEVERITY}
{TRIGGER.STATUS}
as you can see below:
Configure your Zabbix user according to the instructions.