The script receives parameters from the action, such as eventid, hostname, triggerid, etc. Based on this information, the script will get some data (such as load, memory, top, etc.) from zabbix_get, and then combine HTML. Finally, it is sent through the email program in the script.
Send an email with a script on the machine. It accepts some parameters, such as eventid and hostname, and then combines and sends the alarm email content. In zabbix action, only the invoke script can be used. In this way, alarms are removed from zabbix to facilitate subsequent development and maintenance.
Alarm trigger:
1. The Metric item reaches the upper limit.
2 port or service exception closed
3 abnormal User Login
4. server shutdown and restart
Zabbix email alarm Process
Monitoring host -- monitoring item -- trigger -- Alarm action -- Alarm Method -- Alarm user
1. Configure Postfix or Sendmail on zabbix-server to send emails.
Mail-s "this is a test mail" [email protected] </tmp/test. Log
2. Set alarm Handling Methods
Select email to send notifications. The SMTP server and sender must be filled in correctly.
Note: Enter the local machine to create an SMTP server.
3. Set User attributes for receiving alarm information
"Administrator" ---- "user" ---- "admin" Open the Administrator admin attribute settings page and add
Enter the recipient's address by email here.
Email settings till now
4. Add an action)
In "System Configuration"-"operation", click "create operation" to add an operation"
This article is from the "muzinan technology blog" blog, please be sure to keep this source http://muzinan110.blog.51cto.com/684213/1559777
Configure email alert for zabbix