I am trying to follow the steps below. But there is no sendEmail on CentOS 7. I have looked at a few alternatives like Postfix, but I am not sure of the script commands.
Alternatively you can use sendEmail.
1) apt-get install sendEmail
2) Create a script "zabbix_sendemail" (chmod 755) in the AlertScriptsPath folder specified by /etc/zabbix/zabbix_server.conf
> #!/bin/sh
>
> export smtpemailfrom=zabbix@yourdomain.com export zabbixemailto=$1
> export zabbixsubject=$2 export zabbixbody=$3 export
> smtpserver=yoursmtpserver.com export smtplogin=smtpuser export
> smtppass=smtppassword
>
> /usr/bin/sendEmail -f $smtpemailfrom -t $zabbixemailto -u
> $zabbixsubject -m $zabbixbody -s $smtpserver:25 -xu $smtplogin -xp
> $smtppass
3) Set the Action (Configurations / Actions in the php frontend)
4) Set the Media Type (Administration / Media types in the php frontend) script to zabbix_sendemail
5) Add the Media to the user (Administration / Users / user in php frontend) Reply With Quote