1: Install package
Yum-y Install MAILX
Ln-s/bin/mailx/bin/mail
Chown-r Zabbix.zabbix/bin/mail
2: Editor /etc/mail.rc recommended to use the company mailbox as an alarm mail, I use other mailboxes such as 163 test mail to send a successful, but the actual production has not been successful, the company is a rental QQ Enterprise mailbox
Vim/etc/mail.rc
Set from=&&&&@*****.com
Set smtp=smtp.exmail.qq.com
Set smtp-auth-user=&&&&@*****.com
Set Smtp-auth-password=xxxxxx
Set Smtp-auth=login
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/8B/57/wKioL1hKTl7A-o8TAAAz_-SHjCg409.png-wh_500x0-wm_3 -wmp_4-s_3995937684.png "title=" 1.png "alt=" Wkiol1hktl7a-o8taaaz_-shjcg409.png-wh_50 "/>
{ALERT. SENDTO}
{ALERT. SUBJECT}
{ALERT. MESSAGE}
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/8B/5B/wKiom1hKTsjiYKFhAAA-tATG39A226.png-wh_500x0-wm_3 -wmp_4-s_530199073.png "title=" 2.png "alt=" Wkiom1hktsjiykfhaaa-tatg39a226.png-wh_50 "/>
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/8B/5B/wKiom1hKTx2zHoJfAAKJYKCYlY8582.jpg-wh_500x0-wm_3 -wmp_4-s_942719871.jpg "title=" 3.jpg "alt=" Wkiom1hktx2zhojfaakjykcyly8582.jpg-wh_50 "/>
Name: Action-email
Default recipient: fault {TRIGGER. STATUS}, server: {HOSTNAME1} occurred: {Trigger.name} failed!
Default information:
Alarm host: {HOSTNAME1}
Alarm time: {EVENT. DATE} {EVENT. TIME}
Alarm level: {TRIGGER. SEVERITY}
Warning message: {trigger.name}
Alarm item: {TRIGGER. KEY1}
Problem Details: {item.name}:{item. VALUE}
Current status: {TRIGGER. Status}:{item. VALUE1}
Event Id:{event.id}
recovery information: tick
Restore main theme: restore {TRIGGER. STATUS}, server: {HOSTNAME1}: {trigger.name} restored!
Recovery information:
Alarm host: {HOSTNAME1}
Alarm time: {EVENT. DATE} {EVENT. TIME}
Alarm level: {TRIGGER. SEVERITY}
Warning message: {trigger.name}
Alarm item: {TRIGGER. KEY1}
Problem Details: {item.name}:{item. VALUE}
Current status: {TRIGGER. Status}:{item. VALUE1}
Event Id:{event.id}
ZABBIX3.04 setting up external mail alerts