1. Send mail to start postfix
/etc/init.d/postfix start
" Test " 836503270@qq. com </etc/inittab
MAILQ View Send Results
2. Configure Outgoing mail files
Mkdir-p/home/zabbix/bin
vim/home/zabbix/bin/baojing.sh
#! /bin/ "$" "$1 "
chmod +x/home/zabbix/bin/baojing.sh
Modify the Zabbix server configuration file
Vim/etc/zabbix/zabbix_server.conf
alertscriptspath=/var/lib/zabbixsrv/alertscripts changed to Alertscriptspath=/home/zabbix/ Binexternalscripts=/var/lib/zabbixsrv/externalscripts change to externalscripts=/home/ Zabbix/bin
3.web
Administration -Media types-create Media type
Description baojingType scriptscript name baojing.sh
Save
4. Create a user
Administration-users-user-create User
Alias Test1
Name Denny
Surname Admin
passwd Admin
PADDWD Admin
Groups Zabbix Administrators
Media-add
Type baojing
Send to [email protected]
Add
Save
5.
Configuration- Actions -Create action
Name Baojing
Operations-new
Send to Users-add-test1-select
Send to User Groups-add-zabbix administrators
Send only To-baojing
Operation Details-add
Save
Linux monitoring and Security Operations 2.0 Zabbix Configuring message Alarms