Zabbix 4.2 email reminder settings and problem solving

table of Contents

background:

Error 1:

prompt:

the reason:

solve:

Error 2:

prompt:

the reason:

solve:

Error 3:

prompt:

the reason:

solve:

Error 4:

prompt:

the reason:

solve:

reference:


background:

After the installation is complete, zabbix-server, zabbix-agent, (refer to the official website tutorial for the installation process , refer to this article if you encounter problems ), after the configuration is completed and normal use, set up the email reminder function, the specific setting steps refer to the official website tutorial , here is the setting email interface, Take the 163 mailbox as an example, the mailbox settings are shown in Figure 1.

Note that the principle of mailbox setting is that the mailbox client function is integrated in the Zabbix service, log in to an online mailbox account (so you must register an online mailbox address in advance), and then use this mailbox address as the sender address to send alarms to the mailboxes that need to receive alarms mail.

figure 1

Note: The mail_name in the figure is set to your own mailbox name, and POP3/SMTP/IMAP must be enabled for the 163 mailbox, and a third-party authorization code must be set, as shown in Figure 2:

figure 2

The third-party authorization code is set as shown in Figure 3:

image 3

If you select None for the mailbox security connection, the settings are shown in Figure 4 below:

Figure 4

Error 1:

prompt:

  • Page prompt: Login denied: Authentication failed: 550
  • 日志提示:failed to send email: Login denied: Authentication failed: 550

the reason:

The email server has not opened a third-party authorization code.

solve:

As shown in Figure 3, enable the authorization code.

Error 2:

prompt:

  • The page prompts: Login denied: Authentication failed: 535
  • 日志提示:failed to send email: Login denied: Authentication failed: 535

the reason:

  • Incorrect password : (note that the password is not the email login password, but the authorization code for the login of the third-party program set by the email system)
  • User name error: (should fill in the previous part of the @ symbol, or the complete email address)
  • SMTP server port error: (pay attention to the type of secure link, if no port is selected, 25; SSL/TLS depends on the protocol used by the specific mailbox, if it is SSL, the port is 465, if it is TLS, the port is 587)
  • SMTP server error: (fill in the correct server address, you must select the outgoing server address, for example, 163 mailbox is: smtp.163.com qq mailbox is: smtp.qq.com)
  • SMTP HELO error: (fill in the email domain name, such as 163.com qq.com or fill in the SMTP server address)

solve:

You should enter the authorization code, the correct user name and the correct port number, as shown in Figure 1 or refer to Figure 4.

Note that after the configuration is complete, restart the zabbix-Server service.

Error 3:

prompt:

  • The page prompts: the connection timeout 3 seconds exceeds when connecting to the Zabbix server "localhost".

the reason:

The server configuration does not take effect.

solve:

Restart the zabbix-Server service. (Centos7: # systemctl restart zabbix-server)

Error 4:

prompt:

  • Page prompt:

Support for SMTP authentication was not compiled in

  • Log prompt:

failed to send email: Support for SMTP authentication was not compiled in

the reason:

SMTP protocol is not compiled in zabbix server, open the log file, you can see the following log after zabbix-server just started,

 12801:20190513:141300.293 Starting Zabbix Server. Zabbix 4.2.1 (revision 92832).
 12801:20190513:141300.293 ****** Enabled features ******
 12801:20190513:141300.293 SNMP monitoring:           YES
 12801:20190513:141300.293 IPMI monitoring:           YES
 12801:20190513:141300.293 Web monitoring:            YES
 12801:20190513:141300.293 VMware monitoring:         YES
 12801:20190513:141300.293 SMTP authentication:        NO
 12801:20190513:141300.293 Jabber notifications:       NO
 12801:20190513:141300.293 Ez Texting notifications:  YES
 12801:20190513:141300.293 ODBC:                      YES
 12801:20190513:141300.293 SSH2 support:              YES
 12801:20190513:141300.293 IPv6 support:              YES
 12801:20190513:141300.293 TLS support:               YES

The main reason is that the host system is Centos 6, the latest version of curl supported by Centos 6 is 7.19.7 (# curl -V can be viewed), if Zabbix server supports SMTP authentication, libcurl version 7.20 or above is required, so Need to install libcurl above 7.20,

solve:

Follow reference link 5 and link 6, update cuel, then download rpm, and reinstall Zabbix-server.

reference:

1. Email reminders on the official website: https://www.zabbix.com/documentation/4.2/manual/config/notifications/media/email

2.https://www.zabbix.com/forum/zabbix-help/46904-smtp-authentication-fails

3.错误4:https://www.zabbix.com/forum/zabbix-troubleshooting-and-problems/355426-zabbix-failed-to-send-email

4.错误4:https://support.zabbix.com/browse/ZBX-13469

5.更新curl:https://www.digitalocean.com/community/questions/how-to-upgrade-curl-in-centos6

6.更新curl:https://admin-ahead.com/forum/general-linux/upgrade-curl-to-the-latest-version-in-centos-6/

7. Install epel:  https://www.blogging.tips/tutorials/centos/how-install-epel-repo-centos.html

Guess you like

Origin blog.csdn.net/abcdu1/article/details/89850898