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 for Centos

2025-04-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article introduces the relevant knowledge of "how to install and deploy the latest version of Zabbix3.4 in Centos". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

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 pickle selinux etc/selinux/configgrep selinux=disabled/ etc/selinux/configsetenforce etc/selinux/configgrep selinux=disabled/ etc/selinux/configsetenforce 0

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 documents

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

This is the end of systemctl enable zabbix-agent.servicesystemctl restart zabbix-agent.service 's "how to install and deploy the latest version of Zabbix3.4 for Centos". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

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