Zabbix does not send emails. zabbix sends emails

Source: Internet
Author: User

Zabbix does not send emails. zabbix sends emails

Environment: CentOS 6.5 mini

Zabbix version: zabbix2.2.29-2.4.3

Exceptions are caused by the following causes:

1. The zabbix. sh script is abnormal.

# Cd/usr/local/zabbix/share/zabbix

# Cat alertscripts/zabbix. sh

#! /Bin/bash
#$3 indicates the mail content, $2 indicates the mail title, and $1 indicates the recipient
Echo "$3" | mutt-s "$2" $1

Note:

1. Change the users and groups in the alertscripts directory

# Chown-R zabbix. zabbix alertscripts /*

2. Add the execution permission to zabbix. sh.

# Chmod + x alertscripts/zabbix. sh

2. the system comes with a postfix to stop

If you use external mail, you must stop postfix

#/Etc/init. d/postfix status

#/Etc/init. d/postfix start

#/Etc/init. d/postfix stop

# Chkconfig postfix off

3. zabbix_server.conf configuration problems

Open the alertscripts script blocking and write the absolute path

AlertScriptsPath =/usr/local/zabbix/share/zabbix/alertscripts

This path is the zabbix. sh path. After saving and exiting, restart the zabbix_server service and report the following relative path error:


#/Etc/init. d/zabbix_server restart

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.