Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ Zabbix configuration external network mail alarm     - ARP spoofing prevent Linux environment LAN (Linux)

- Java polymorphic methods inside constructors complete analysis (Programming)

- SQL Beginner Guide (Database)

- Java logging performance of those things (Programming)

- Linux System Getting Started Learning: Linux how to install 7zip (Linux)

- Smooth upgrade to OpenSSH 6.1 Procedure (Linux)

- CentOS7 management of systemd (Linux)

- Linux Mint 17 set up the Ruby environment (Linux)

- Ubuntu and derivative users to install the system launcher SimDock 1.3 (Linux)

- Lua4.0 interpreter entrance (Programming)

- Linux operation and maintenance of the actual file system, file links (Linux)

- Build RPM package uses Docker mirror (Linux)

- Steps to build MPICH2 development environment on CentOS 6.4 (Linux)

- 17 How to install the Ubuntu 14.04 and Linux Mint Kodi14 (XBMC) (Linux)

- Java polymorphism and exception handling (Programming)

- Linux three ways to set environment variables (Linux)

- Python2 ---- function using dictionaries (Programming)

- How to convert images, audio and video formats on Ubuntu (Linux)

- Nginx Proxy timeout Troubleshooting (Server)

- Security of data to create a safe .mdb database (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
Http://sourceforge.net/projects/msmtp/files/msmtp/1.6.2/
Install msmtp
Tar jxvf msmtp-1.6.2.tar.bz2
Cd msmtp-1.6.2
./configure
Make
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
     
         
       
         
  More:      
 
- Grub2 Boots the openSUSE installation image (Linux)
- shell script error dirname: invalid option - b (Database)
- Android annotation support (Support Annotations) (Programming)
- 11G ASM disk group does not automatically handle MOUNT (Database)
- How to install and use the Snort in Ubuntu 15.04 (Linux)
- Python Multithreaded Programming (Programming)
- Eight sorting algorithm implemented in Python (Programming)
- Linux LVM Logical Volume Management to resize partitions (Linux)
- CentOS 6.4 dial-up Raiders (Linux)
- Linux Nginx FastDFS integration module is installed Nginx and FastDFS (Server)
- Shared directory settings between Linux and Linux (Linux)
- Linux Kernel 4.2 Installation Instructions (Linux)
- Java object serialization (Programming)
- What is Java EE (Programming)
- Linux Powerful command Awk Introduction (Linux)
- To install Jetty server configuration in detail (Server)
- Windows7 system using Vagrant to build Linux virtualized development environment (Linux)
- JBPM6 Tutorial - Fast Fun JBPM table (Linux)
- GRUB how to load Linux kernel (Linux)
- Linux firewall iptables beginner tutorial (Linux)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.