Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install Zabbix under Centos7

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces "how to install Zabbix under Centos7". In daily operation, I believe many people have doubts about how to install Zabbix under Centos7. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts of "how to install Zabbix under Centos7". Next, please follow the editor to study!

I. the characteristics of zabbix

Data collection

   availability and performance check

   supports snmp (including capture and active rotation training) and ipmi,jmx,vmware monitoring

   Custom check

   collects the required data at custom intervals

   is executed by server/proxy and agents

Flexible threshold definition

Highly configurable alarm

Real-time chart drawing

Using the built-in chart drawing function, you can immediately chart the contents of the monitoring items.

Web monitoring function

Support for custom graphics

Rich visualization options

Multiple monitoring items are displayed in one view

Network topology diagram

Group inspection based on template

Secure user authentication

Written in C language with high performance

II. Composition of zabbix

Zabbix server

   zabbix server is the core memory for all configuration information, statistics, and operational data. Used to report system availability, system completeness, statistics, etc.

Zabbix data storage side

Configuration information and data collected by zabbix are stored in the database and mysql,pg,oracle is supported.

Zabbix web display end

Provides a web-based access interface (written in PHP)

Zabbix client

The    zabbix agents monitoring agent is deployed on the monitoring target and can proactively monitor local resources and applications and report the collected data to zabbix server.

Zabbix proxy proxy server

   zabbix proxy collects performance and availability data for zabbix server. The proxy proxy server is part of the optional deployment of the zabbix software; of course, the proxy proxy server can help a single zabbix server share the load.

3. Zabbix typical architecture deployment diagram

Fourth, install zabbix

View the centos version number

# more / etc/redhat-release # # demo environment centos linux release 7.4.1708 (core)

Close selinux

# vi / etc/selinux/config # # close selinuxselinux=disabled# setenforce 0

Install the mariadb database. If you have successfully installed mysql, this step can be omitted (mariadb is a branch of mysql and has the same function as mysql)

# yum install mariadb-server mariadb- y # # install mariadb database # systemctl start mariadb# systemctl enable mariadb

Add zabbix yum source, install zabbix server and web management

# # add zabbix yum source, install zabbix server and web management # rpm-ivh http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-1.el7.centos.noarch.rpm# yum install zabbix-server-mysql zabbix-web-mysql-y

Log in to mysql to create databases and directories

# mysql # # Log in to mysql to create database and directory welcome to the mariadb monitor. Commands end with; or\ g.your mariadb connection id is 3server version: 5.5.56-mariadb mariadb servermariadb [(none)] > create database zabbix character set utf8 collate utf8_bin;query ok, 1 row affected (0.00 sec) mariadb [(none)] > grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix#1235';query ok, 0 rows affected (0.00 sec)

Add zabbix metadata to mariadb

# # add zabbix metadata to mariadb# zcat / usr/share/doc/zabbix-server-mysql-3.4.4/create.sql.gz | mysql- uzabbix-pzabbix#1235 zabbix

5. Configure zabbix

# cp / etc/zabbix/zabbix_server.conf / etc/zabbix/zabbix_server.conf.1121 # # back up an original file first # vim / etc/zabbix/zabbix_server.conf # # use the default configuration Just set the database password dbpassword=zabbix#1235# vim / etc/httpd/conf.d/zabbix.conf # # modify the apache zabbix time zone php_value date.timezone asia/shanghai# cp / etc/httpd/conf/httpd.conf / etc/httpd/conf/httpd.conf.bk# vim / etc/httpd/conf/httpd.conf # # author: leshamilisten 3080 # # here use the non-default port 80 # # blog: http://blog.csdn.net/leshami

Start related services

# systemctl start zabbix-server.service # systemctl enable zabbix-server.service # systemctl start httpd # systemctl enable httpd # netstat-nltp | egrep "zabbix | httpd | mysql" tcp 00 0.0.0.0systemctl start httpd 10051 0.0.0.0tcp * listen 15720/zabbix_server tcp 00 0.0.0.0systemctl start httpd 3080 0.0.0.0systemctl start httpd * listen 15385/httpd tcp 00 0.0.0.0systemctl start httpd 3306 0 .0.0.0: * listen 14146/mysqld tcp6 00: 10051:: * listen 15720/zabbix_server

Firewall configuration

# firewall-cmd-add-port=3080/tcp-permanent # # add web port # firewall-cmd-add-port=10051/tcp-permanent # # add zabbix_server port # systemctl reload firewalld.service

VI. Installation and configuration of zabbix graphical interface

Open a browser and enter http://ip:3080/zabbix

Configure the basic information of zabbix database and zabbix administrator account and password

Set the ip, port and name of the zabbix server

VII. Installation and configuration of zabbix client

For zabbix servers, they can also be monitored. For self-monitoring, the agent side should also be installed.

For non-native agent installations, you should first configure the yum source, then install the agent, and modify the server configuration file to point to the server.

# yum install zabbix-agent-y # systemctl enable zabbix-agent.serviceagent configuration [root@ydq-mnt zabbix] # vim / etc/zabbix/zabbix_agentd.confserver=127.0.0.1,10.80.234.38serveractive=127.0.0.1,10.80.234.38# systemctl start zabbix-agent.service

VIII. Some points for attention

1. Before installation, it is recommended to configure the server and client / etc/hosts files to add the ip mapping relationship between the server and the client host to the current host

2. A unified hostname is used in server-side and agent-side configuration files, which is case-sensitive. Otherwise, it is easy to be unable to connect.

3. The firewall port is opened. For the non-local agent side, open port 10050

At this point, the study on "how to install Zabbix under Centos7" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report