Zabbix Configuring Mailbox Alarms

Source: Internet
Author: User

Although there are many online configuration Zabbix mailbox Alarm mail, but can be successful or a few, here I do Zabbix mail alarm steps to write it!


1. Install the Mail sending tool MAILX

Most of the internet is used SendMail or postfix, here I use is MAILX

Yum-y Install MAILX Installation

Ln-s/bin/mailx/bin/mail Creating a soft connection


2. Configure MAILX

Vim/etc/mail.rc

Set from= "136****@126.com"

Set smtp= "Smtp.126.com"

Set smtp-auth-user= "136****@126.com"

Set smtp-auth-password= "Password"

Set Smtp-auth=login


Send a test message with a Zabbix topic

echo "Zabbix Test Mail" | Mailx-s "Zabbix" [email protected]

Note: The firewall to open 25 port, or not send the mail



3. Write a script to send the message, the script must have the executable permission

The script should be placed in the/etc/zabbix/alertscripts/directory, depending on what script path you define in zabbix_server.conf

cat/sendmail.sh

#!/bin/sh#send Mail by Mail.rc#write by zhoufujin#$1, $ mean Recipient, Subject and Messageecho "$ $" | /bin/mail-s "$" $


3. Configure Mail alerts on Zabbix


(1) Activate the warning media type email

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/80/10/wKiom1c1o-vCh7JcAACZQI6KU9c645.png "title=" 03d0f2ac-c0ed-4880-8d20-dfc6d100b832.png "alt=" Wkiom1c1o-vch7jcaaczqi6ku9c645.png "/>


650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/80/10/wKiom1c1pEWBC9FbAABx1zAFzCg313.png "title=" D6e1c354-c124-4a0a-a06a-04b7610dd299.png "alt=" Wkiom1c1pewbc9fbaabx1zafzcg313.png "/>


(2). Set Zabbix user Email alarm Address

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/80/10/wKiom1c1pHTAUBveAACvcmI6wGc516.png "title=" 9f2ee8cc-fd89-46f8-aa95-45388431ca8b.png "alt=" Wkiom1c1phtaubveaacvcmi6wgc516.png "/>


Here you can add multiple mail addresses


650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/80/0D/wKioL1c1pZLRx_rBAAF8Yjxxrfs087.png "title=" 63c5caca-6e19-4157-9c42-be0b9689a339.png "alt=" Wkiol1c1pzlrx_rbaaf8yjxxrfs087.png "/>


(3) Set the action of Zabbix trigger alarm. I created the action here to do a classification


650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/80/0D/wKioL1c1pejDpx76AADYvK_kuKM853.png "title=" 8ce2a4d9-79b7-4c8a-af51-d8f90ca7113d.png "alt=" Wkiol1c1pejdpx76aadyvk_kukm853.png "/>


650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/80/10/wKiom1c1pRrBmL1EAABxafiGwu0532.png "title=" Bf735b53-a4a3-4e06-bb3f-84a836e6dd51.png "alt=" Wkiom1c1prrbml1eaabxafigwu0532.png "/>


650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/80/0D/wKioL1c1phDCw6-8AACVj2y-ZpI085.png "title=" F3f01c10-c555-4545-972f-4b604d316cbd.png "alt=" Wkiol1c1phdcw6-8aacvj2y-zpi085.png "/>


The complete Zabbix alarm is set up here, please leave a message if you have any questions.

This article from "Do not abandon!" Do not give up "blog, be sure to keep this source http://thedream.blog.51cto.com/6427769/1773146

Zabbix Configuring Mailbox Alarms

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.