Zabbix Mail Alarm Configuration

Source: Internet
Author: User
Tags configuration settings

Zabbix Mail Alarm


Preface: Configure Installation Complete Zabbix

Refer to: http://jeremybale.blog.51cto.com/3341343/1626269


Environment: Zabbix monitoring environment through the company's internal mail server for alarm


Mail Alarm configuration settings:

Configure your system's own mail to send mail through the intranet

Open an intranet for sending Zabbix alarm mailbox

Vim/etc/mail.rc

Set [email protected]

Set Smtp=ip

Set [email protected]

Set Smtp-auth-password=zabbix

Set Smtp-auth=login


Test

echo "Content Hello" | Mail-s "Test Title" [email protected]


Modifying the Zabbix configuration file

cd/u01/zabbix-2.4.4/

mkdir alertscripts

Vim mail.sh

#!/bin/bash

echo "$ $" | Mail-s "$" $

Chown-r Zabbix:zabbix. /alertscripts

chmod 755 mail.sh


Log in to the Zabbix Web Admin page to configure

Management-Warning Media type-Create media type

Name: Mailinner

Type: Script

Script Name: mail.sh

Management-User-admin: Warning Media-add

Type: Mailinner

Recipient: [Email protected]


Group-action-Create action

Action: Action-mail

Action-add: Send to user group to send to user only to-mailinner


This article is from the "Jeremy Ops Architecture" blog, make sure to keep this source http://jeremybale.blog.51cto.com/3341343/1690094

Zabbix Mail Alarm Configuration

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.