ZABBIX3.04 setting up external mail alerts

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.