Home IT Linux Windows Database Network Programming Server Mobile  
  Home \ Server \ Zabbix configuration external network mail alarm     - CKEditor + SWFUpload achieve a more powerful editor (Linux)

- Linux operating system Study Notes (Linux)

- Installation Experience open source car Automotive Grade Linux system (Linux)

- Ansible module Know (Linux)

- Several Ceph performance optimization of new methods and ideas (2015 SH Ceph Day after flu reference) (Server)

- Linux file compression and archiving (Linux)

- Sort search algorithm Java - application examples with recursive dichotomy (Programming)

- HTML5 postMessage cross-domain data exchange (Programming)

- Apple Mac computer to install Windows 10 Concise Guide (Linux)

- Ubuntu 14.10 install KDE Plasma 5.2 (Linux)

- Understanding Linux firewall Iptables (Linux)

- Linux system on how to use rsync to synchronize data (Server)

- Java string intern constant pool resolution Introduction (Programming)

- Sorting algorithm of dichotomy (binary) insertion sort algorithm (Programming)

- Linux installation beautify early experience (Linux)

- Source Analysis: Java object memory allocation (Programming)

- Linux instructions and examples GPG encryption and decryption (Linux)

- Using PPA to install the lightweight theme software HotShots 2.1.0 under Ubuntu (Linux)

- VNC connection VMware vSphere ESXi 5.5 (Linux)

- Linux - Common process the command (Linux)

  Zabbix configuration external network mail alarm
  Add Date : 2017-08-31      
  1. Basic conditions

The zabbix server has been created and running
The zabbix client is already up and running
2. Packages that need to be installed
Compile and install msmtp package, yum install mutt package
Configuration procedure
3.1 Configure msmtp
Download and install the msmtp package
Install msmtp
Tar jxvf msmtp-1.6.2.tar.bz2
Cd msmtp-1.6.2
Make install Creates the msmtp configuration file
/ Usr / local / etc / msmtprc file contents
Account default
Host smtp.exmail.qq.com
From zabbix@uxuexi.com
Auth login
Tls off
User zabbix@uxuexi.com
Password uxuexi123
Logfile /var/log/msmtp.log Modify the configuration file permissions
Chown zabbix: zabbix / usr / local / etc / msmtprc Creates a log file
Touch /var/log/msmtp.log
Chown zabbix: zabbix /var/log/msmtp.log

3.2 Configuring Mutt
Yum Install mutt and modify the configuration file
Vim / etc / Muttrc Modify the following options
Set sendmail = "/ usr / local / msmtp / bin / msmtp"
Set use_from = yes
Set realname = "zabbix@uxuexi.com"
Set editor = "vim" test, if the message shows that there is no problem
Echo "test mail" | mutt -s "test" xxx @ xxx
3.3 Configuring zabbix
3.3.1 Create the zabbix script
Vim /usr/lib/zabbix/alertscripts/msmtp.sh Script contents
Where $ 3 is the message content, $ 2 is the message header, and $ 1 is the mail address
#! / Bin / bash
Echo "$ 3" | mutt -s "$ 2" "$ 1" Create the media type
In the zabbix web page administrator -> media types click the upper right corner of the create media type

3.3.2 zabbix user configuration
In the zabbix web page administrator -> users click the upper right corner of the users group, select the users, click the user
Switch to the media tab in the user's configuration interface
Click add
In the pop-up dialog box to send to fill in the mail address to send mail

Zabbix action configuration
In the configuration -> actions page click the top right corner create action
Add the action name

Click new at the operations tab

Configure the time for each step (the default 3600s) in the first few steps to send mail, send to users to add users, and then click the first add

All operations can be done to do some stress testing to generate some alarms to test the message
- How to use Quagga BGP (Border Gateway Protocol) router to filter BGP routing (Linux)
- VirtualBox 4.3 Can not open a new task for a virtual computer solution (Linux)
- Getting Started with Linux: Learn how to install and access CentOS 7 Remote Desktop on a VPS (Server)
- KVM QEMU virtual machine installation configuration under CentOS (Linux)
- Solve ORA-01012: not logged on (Database)
- namespace mechanism Linux kernel analysis (Linux)
- Nginx + uWSGI + Django + Python Application Architecture Deployment (Server)
- To install HDRMerge 0.4.3 under ubuntu (Linux)
- The Zabbix2.4.5 source compiler installation under Ubuntu 14.04 (Server)
- Shilpa Nair interview experience sharing RedHat Linux package management (Linux)
- Ubuntu 15.04 install Complete Guide (Linux)
- Install and configure GO 1.2.1 under CentOS 6.5 (Linux)
- HAProxy performance under high concurrency (Server)
- Bash job control (Linux)
- Add a custom encryption algorithm in OpenSSL (Linux)
- To install Xen in Ubuntu 12.04 (Linux)
- About Git (Linux)
- RedHat Linux 6.5 Enterprise Edition installation Redis 3.0.3 (Database)
- Python context managers (Programming)
- Oracle database physical file backup / restore (Database)
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.