Zabbix Monitoring mail alarm function two times development (custom media)

Source: Internet
Author: User

Zabbix version: 2.2.5
Development language: Perl
System Environment: Redhat 6.7

I. Main realization function: 1. Email Alert Content Personalization
2. The recipient displays multiple contacts at the same time
3. Add alarm (1 hours) to the message

Two, the two places needing attention:
1.zabbix_server.conf Open your own alarm script path
Alertscriptspath=/wls/zabbix/alertscripts
2. Permissions issues
Give file 777 permissions to the Alertscriptspath=/wls/zabbix/alertscripts directory
chmod 777-r alertscriptspath=/wls/zabbix/alertscripts

Here to write the link content
http://blog.csdn.net/jackm1688/article/details/51729490

Vi.. Monitoring template content:

Itemid:{item. ID1}
Dengji:{trigger. SEVERITY}
[Kt]key:{item. KEY1}[KN]
[Hs]host:{host. NAME1}[HN]
cn_st[xxxx@xxxan.com.cn;xxxx@xxxan.com.cn;] EN_CN
Alarm entry name #^{item. NAME1}
Alarm host #^{host. NAME1}
Alarm key key value #^{item. KEY1}
alarm trigger rule #^{trigger. EXPRESSION}
Alarm Time #^{event. DATE} {EVENT. TIME}
alarm level #^{trigger. SEVERITY}
Alarm value #^{item. VALUE1}
Latest acquisition value #^{{hostname}:{trigger. Key}.last (0)}
problem description #^{trigger. DESCRIPTION}

Effect Diagram:

Related Article

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.