ZabbixConfigurationEmailThe sending method is to avoid measures that are not around when the alarm is triggered!
Zabbix Installation Platform: ubuntu
Step 1:
Run the following command to install sendmail. (You can also install the mail server when installing ubuntu. I am using the command to install sendmail)
Sudo apt-get install sendmail
Step 2:
If an associated package is prompted during the mail test, follow the prompts to install the package. At this time, you will see some help prompts on the screen. You can use the following command to send a simple mail
Mail recipient address press ENTER
Enter the title and press ENTER
Press ENTER
Ctrl + d
Step 3: Configure zabbix
Administrator-> Media Type-> Create Media Type
Note the following points:
SMTP Server: Your company's email Server (for example, mail.china.com)
SMTP helo: email server domain (for example, china.com)
SMTP email: XXX@china.com (Note: XXX custom)
Step 4: zabbix create a user, add media-type email, enter the email address you want to send to your company (such as: zs@china.com)
Step 5: Create an Action (see the official zabbix API for details)
Step 6: Create a Trigger (same as above)
If a trigger is triggered, Action sends an alarm to the email address of the zabbix user you specified.
Install the above six steps, and you will be able to set up zabbix email sending!