Yum deployment, zabbix monitoring, and yum deployment of zabbix monitoring

Source: Internet
Author: User
Tags import database

Yum deployment, zabbix monitoring, and yum deployment of zabbix monitoring

 

Deploy zabbix monitoring in yum

 

Chapter 2 deploy zabbix server in yum... 1

1.1 command line deployment... 1

1.1.1 yum source configuration-explanation... 2

1.1.2 MariaDB and mysql 3

1.2 zabbix-web interface settings... 3

1.2.1 detailed explanation of web graphic process... 3

1.3 add monitored hosts... 6

1.3.1 zabbix-web interface operations... 7

1.3.2 Character Set Optimization... 7

Chapter 2 yum deployment zabbix server 1st command line deployment

# Self-built yum repository (recommended-limited to the network-very pitfall)

[Root @ m01 ~] # Tail-1/etc/hosts

192.168.19.200 repo.zabbix.com mirrors.aliyun.com

 

Obtain the yum source (only the source for zabbix installation is provided)

Rpm-ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm

 

# Install zabbix, httpd, and php (dependent on httpd and php)

Yum install zabbix-server-mysql zabbix-web-mysql

 

# Install and start mariadb (mysql was acquired by oracle)

Yum-y install mariadb-server

Systemctl start mariadb. service

 

# Create a database and grant permissions

Mysql

Create database zabbix character set utf8 collate utf8_bin;

Grant all privileges on zabbix. * to zabbix @ localhost identified by 'zabbix ';

Flush privileges;

Exit

 

# Import database SQL files (downloaded during server Installation)

Zcat/usr/share/doc/zabbix-server-mysql-3.0.13/create. SQL .gz | mysql-uzabbix-pzabbix zabbix

 

# Configure zabbix Server to connect to mysql (most of them do not need to be modified during yum installation)

Sed-I. ori '115a DBPassword = zabbix'/etc/zabbix/zabbix_server.conf

 

# Modify apache-php configuration (most of the configurations do not need to be modified during yum installation)

Sed-I. ori '18a php_value date. timezone Asia/Shanghai'/etc/httpd/conf. d/zabbix. conf

 

# Start zabbix-server httpd

Systemctl start zabbix-server

Systemctl start httpd

#====== Now, enter the web interface for operations ====

 

1.1.1 yum source configuration-Explanation

We recommend that you build your own yum repository. The installation will be smooth, not limited to the various installation failures of the network yum source. (More than 50 GB is required for a particularly comprehensive solution)

# Prepare the yum source first

[Root @ CentOS7 ~] # Rpm-ql zabbix-release-3.0-1.el7.noarch.

/Etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX

/Etc/yum. repos. d/zabbix. repo

/Usr/share/doc/zabbix-release-3.0

/Usr/share/doc/zabbix-release-3.0/GPL

# Method 1: Download directly online (install online)

Rpm-ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm

# Method 2: First download this rpm package, then upload it, and finally install it (online installation)

 

[Root @ CentOS7 ~] # Rpm-ivh zabbix-release-3.0-1.el7.noarch.rpm

# Method 3: Build your own local yum repository (recommended-faster download speed)

 

 

 

1.1.2 MariaDB and mysql

The MariaDB database management system is a branch of MySQL. It is mainly maintained by the open-source community and licensed by GPL. One of the reasons for developing this branch is that after Oracle acquired MySQL, there is a potential risk of closing the source of MySQL. Therefore, the community uses the branch method to avoid this risk.

MariaDB is designed to be fully compatible with MySQL, including APIs and command lines, so that it can easily become a substitute for MySQL.

1.2 zabbix-web interface setting 1.2.1 detailed description of web Graphic Process

 

 

 

 

 

1.3 add monitored hosts

# All servers to be monitored must execute

# Update yum Source

Rpm-ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm

# Install zabbix-agent

Yum install zabbix-agent

# Configuration file

Sed-I. ori's # Server = 127.0.0.1 # Server = 172.16.1.61 # '/etc/zabbix/zabbix_agentd.conf

# Start

Systemctl start zabbix-agent.service

1.3.1 zabbix-web interface operations

 

1.3.2 Character Set Optimization

# Install "wenquanyi-micron black font"

Yum-y install wqy-microhei-fonts

# Replacing the original font

\ Cp/usr/share/fonts/wqy-microhei/wqy-microhei.ttc/usr/share/fonts/dejavu/DejaVuSans. ttf

# Refresh the web page.

 

 

 

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.