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 and deploy the latest version of Zabbix3.4 in Centos7.3

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how to install and deploy the latest version of Zabbix3.4 in Centos7.3, which is very detailed and has certain reference value. Friends who are interested must finish reading it!

I. system environment

Cat / etc/redhat-release

CentOS Linux release 7.3.1611 (Core)

Turn off the firewall and selinux

Systemctl stop firewalld.servicesystemctl disable firewalld.servicesed-I's etc/selinux/configgrep SELINUX=disabled/ etc/selinux/configsetenforce'/ SELINUXpickenforcingCharpy'/ SELINUXUnix

II. Database installation and configuration

1. Overview of MariaDB

MariaDB database management system is a branch of MySQL, which is mainly maintained by the open source community and licensed by GPL.

The reason for developing this branch is that after Oracle acquired MySQL, there is a potential risk of shutting down MySQL, so the community uses a branching approach to avoid this risk.

The goal of MariaDB is to be fully compatible with MySQL, including API and the command line, making it an easy replacement for MySQL.

2. Install mariadb

Yum install mariadb-server mariadb- y

The relevant commands for the mariadb database are:

Systemctl start mariadb # start MariaDBsystemctl stop mariadb # stop MariaDBsystemctl restart mariadb # restart MariaDBsystemctl enable mariadb # set boot

III. Installation and configuration of Zabbix3.4

1. Overview of new features of Zabbix3.4

Remote command support through proxies

Parallel processing of alerts

Being notified on problem acknowledgement

Item value preprocessing

New preprocessing options

Configurable JMX endpoints

JMX low-level discovery

PCRE library for regular expressions

URL-encoding support in web monitoring

Automatic URL-encoding

Flexible URL-encoding for variables

Unicode support in domain names

Support of macros and time suffixes in time periods

Host macro support in event tags

Frontend improvements

Dropping IE9 and IE10 support

Full cloning of screens and maps

Unified style for radio buttons and checkboxes

Applying same permissions to nested host groups

Increased field sizes

Miscellaneous

Daemon improvements

IPMI polling

Configuration parameters

More information on agent metric thread crashes

Item changes/improvements

Low-level discovery

Return code check for scripts and commands

Zabbixe Chinese document https://www.zabbix.com/documentation/3.4/zh/manual

2. Zabbix3.4 installation

Rpm-ivh http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-1.el7.centos.noarch.rpmyum install zabbix-server-mysql zabbix-web-mysql-y

3. Create a database

Create database zabbix character set utf8 collate utf8_bin;grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix'

4. Import data

The copy code is as follows:

Zcat / usr/share/doc/zabbix-server-mysql-3.4.0/create.sql.gz | mysql- uzabbix-pzabbix zabbix

5. Configure database users and passwords

Grep-n'^'[amurz] / etc/zabbix/zabbix_server.conf38:LogFile=/var/log/zabbix/zabbix_server.log49:LogFileSize=072:PidFile=/var/run/zabbix/zabbix_server.pid99:DBName=zabbix115:DBUser=zabbix123:DBPassword=zabbix314:SNMPTrapperFile=/var/log/snmptrap/snmptrap.log432:Timeout=4474:AlertScriptsPath=/usr/lib/zabbix/alertscripts484:ExternalScripts=/usr/lib/zabbix/externalscripts520:LogSlowQueries=3000

6. Start zabbix server and set boot

Systemctl enable zabbix-serversystemctl start zabbix-server

7. Edit the Zabbix front-end PHP configuration and change the time zone

Vim / etc/httpd/conf.d/zabbix.confphp_value date.timezone Asia/Shanghai

8. SELinux configuration

Setsebool-P httpd_can_connect_zabbix onsetsebool-P httpd_can_network_connect_db on

9. Start httpd and set boot

Systemctl start httpdsystemctl enable httpd

Fourth, install Zabbix Web

1. Visit the browser and install http://172.16.8.254/zabbix/

2. Click next and the check status will appear.

3. Check the system environment settings. All of them must be ok before continuing.

Enter the details of connecting to the database. The Zabbix database must have been created

5. Connect the Zabbix service details. If there is no change, you can choose the default.

7. After the installation is completed, the configuration file will be generated in / etc/zabbix/web/zabbix.conf.php

Congratulations! You have successfully installed Zabbix frontend.Configuration file "/ etc/zabbix/web/zabbix.conf.php" created.

8. Log in to the latest version of Zabbix3.4 default user Admin default password zabbix

V. installation and configuration of zabbxi-agent

1. Install zabbxi-agent

Yum install zabbix-agent-y

2. Configure zabbxi-agent

Grep-n'^'[amurz] / etc/zabbix/zabbix_agentd.conf 13:PidFile=/var/run/zabbix/zabbix_agentd.pid32:LogFile=/var/log/zabbix/zabbix_agentd.log43:LogFileSize=097:Server=172.16.8.254138:ServerActive=172.16.8.254149:Hostname=Zabbix server267:Include=/etc/zabbix/zabbix_agentd.d/*.conf

3. Start zabbxi-agent and set boot

Systemctl enable zabbix-agent.servicesystemctl restart zabbix-agent.service above is all the content of the article "how to install and deploy the latest version of Zabbix3.4 in Centos7.3". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

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

Servers

Wechat

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

12
Report