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