Zabbix Mail Alarm setup configuration steps in Linux

Source: Internet
Author: User
Tags email account

Send alert email settings using an external email account

Configure the Zabbix server external mailbox vi/etc/mail.rc #编辑, add the following information set [email protected] smtp=smtp.163.comset [email protected] Smtp-auth-password=123456set smtp-auth=login:wq! #保存退出 configuring Zabbix server-side mail alerts 1. Management-Warning Media type-Create media type name: SendMail Type: Script script name: sendmail.sh enabled: Tick archive 2, set Zabbix user alarm Email address configuration-user-admin (Zabbix Administrator) 3, Set the action configuration of the Zabbix trigger alarm-action-Create action 4, add Zabbix server-side mail send script cd/usr/local/zabbix/share/zabbix/alertscripts #进入脚本存放目录vi Sendmail.sh #编辑, add the following code #!/bin/shecho "$ $" | Mail-s "$" $1:wq! #保存退出chown zabbix.zabbix/usr/local/zabbix/share/zabbix/alertscripts/sendmail.sh# Set script owner to Zabbix user chmod +x/usr/ local/zabbix/share/zabbix/alertscripts/sendmail.sh# Setting Script Execution permissions

Zabbix Mail Alarm setup configuration steps in Linux

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.