Configure email alert for zabbix

Source: Internet
Author: User


The script receives parameters from the action, such as eventid, hostname, triggerid, etc. Based on this information, the script will get some data (such as load, memory, top, etc.) from zabbix_get, and then combine HTML. Finally, it is sent through the email program in the script.


Send an email with a script on the machine. It accepts some parameters, such as eventid and hostname, and then combines and sends the alarm email content. In zabbix action, only the invoke script can be used. In this way, alarms are removed from zabbix to facilitate subsequent development and maintenance.


Alarm trigger:

1. The Metric item reaches the upper limit.

2 port or service exception closed

3 abnormal User Login

4. server shutdown and restart


Zabbix email alarm Process

Monitoring host -- monitoring item -- trigger -- Alarm action -- Alarm Method -- Alarm user


1. Configure Postfix or Sendmail on zabbix-server to send emails.

Mail-s "this is a test mail" [email protected] </tmp/test. Log


2. Set alarm Handling Methods

Select email to send notifications. The SMTP server and sender must be filled in correctly.

Note: Enter the local machine to create an SMTP server.


3. Set User attributes for receiving alarm information

"Administrator" ---- "user" ---- "admin" Open the Administrator admin attribute settings page and add

Enter the recipient's address by email here.

Email settings till now


4. Add an action)

In "System Configuration"-"operation", click "create operation" to add an operation"



This article is from the "muzinan technology blog" blog, please be sure to keep this source http://muzinan110.blog.51cto.com/684213/1559777

Configure email alert for zabbix

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.