Zabbix How to set up email reminders

Source: Internet
Author: User
Tags how to set up email set up email

The company needs to train new people to build Zabbix , according to the document can be built successfully, but encountered in the building of email reminders always a problem, so here alone to write Zabbix How to set up email reminders.

premise: Build up Zabbix_server and the zabbix_agent and set correctly Trigger, There is a reminder on the control Panel.

a . Set Zabbix Control Panel

1.1 Enter mediatype

Click Administration - Media Types

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/77/80/wKioL1ZpHPiw_BJRAABR5JIjFaI187.png "title=" 1.png " alt= "Wkiol1zphpiw_bjraabr5jijfai187.png"/>

1.2 set up a new mediatype

in the top right corner, click Create media type, the input form is shown in

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/77/80/wKioL1ZpHRahaOmZAAAr4QLa5u4179.png "title=" 2.png " alt= "Wkiol1zphrahaomzaaar4qla5u4179.png"/>

1.3 Enter Action

Click configuation - Actions

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/77/81/wKiom1ZpHNfQViCFAABOevcrAh0921.png "title=" 3.png " alt= "Wkiom1zphnfqvicfaaboevcrah0921.png"/>

1.4 Create a new action and tick all two of them .

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/77/81/wKiom1ZpHPWgkYLLAABdoZUc-Nc324.png "title=" 4.png " alt= "Wkiom1zphpwgkyllaabdozuc-nc324.png"/>

1.5 Configure message default detection time and sent users

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/77/80/wKioL1ZpHYXzYfR4AAEPsQLiySY474.png "title=" 5.png " alt= "Wkiol1zphyxzyfr4aaepsqliysy474.png"/>

1.6 setting up Add Users

Click Administor-user

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/77/81/wKiom1ZpHTHSpdYvAAC0dF322Rw642.png "title=" 6.png " alt= "Wkiom1zphthspdyvaac0df322rw642.png"/>

1.7 Enter Media Add User

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/77/81/wKiom1ZpHVOScNlEAABr0QQ3Rk4258.png "title=" 7.png " alt= "Wkiom1zphvoscnleaabr0qq3rk4258.png"/>

1.8 Join the mailboxes you need to add

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/77/80/wKioL1ZpHfrwZDUZAABpJGRVHVI657.png "title=" 8.png " alt= "Wkiol1zphfrwzduzaabpjgrvhvi657.png"/>

two . Add a script

2.1 Writing Scripts

[email protected] ~]# cat Send_email.sh#!/bin/bashecho "$ $" | Mail-s "$" $

2.2 Set send_email.sh the location and permissions

How can we get this send_email.sh to be called and play a role, here we're going to look at Zabbix 's config file.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/77/81/wKioL1ZpHo2D90TiAAA4GSLl28g283.png "title=" 9.png " alt= "Wkiol1zpho2d90tiaaa4gsll28g283.png"/>

This defines where the script is stored, so we should put the script under this directory, but we also have to make the script execute permissions, and be able to be Zabbix user execution, then let's take a look Zabbix What user is running the

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/77/83/wKiom1ZpHkjDv8zqAABKq-ui-5U424.png "title=" 10.png "alt=" Wkiom1zphkjdv8zqaabkq-ui-5u424.png "/>


here is the use 496 The user opens, we can look at 496 which user is

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/77/82/wKioL1ZpICPCAjbKAAAaS-Hylh0726.png "title=" 11.png "alt=" Wkiol1zpicpcajbkaaaas-hylh0726.png "/>

So here we can put send_mail.sh This script is placed under that and then modifies the permissions.

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/77/83/wKiom1ZpH9yi_OpXAAAV1e2hi2A928.png "title=" 12.png "alt=" Wkiom1zph9yi_opxaaav1e2hi2a928.png "/>

2.3 Configure the email address to send mail

in the /etc/mail.rc The following information is added below

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/77/82/wKioL1ZpIIfCPBNmAAAvTCaB8tA369.png "title=" 13.png "alt=" Wkiol1zpiifcpbnmaaavtcab8ta369.png "/>

Note: To here Zabbix email alert configuration is OK, now is the test, I here is the Zabbix_agent trigger closed, and then he triggered the alarm, so here the premise Tigger is normal, If the Tigger is not established, the zabbix_agent can be closed and the alarm will be triggered.


This article is from the "Chuck's blog" blog, so be sure to keep this source http://chuckzeng.blog.51cto.com/10524728/1721556

Zabbix How to set up email reminders

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.