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

Installation textbook for zabbix3.4

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

Share

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

This article mainly explains "the installation textbook of zabbix3.4". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn the installation textbook of zabbix3.4.

The system used in this installation: centos7

Zabbix version: zabbix3.4

I. system environment

Cat / etc/redhat-release

CentOS Linux release 7.1.1503 (Core)

Turn off the firewall and selinux

Copy

Systemctl stop firewalld.service

Systemctl disable firewalld.service

Sed-I's Union SELINUXPRENTENTFORCING sed'/ etc/selinux/config

Grep SELINUX=disabled / etc/selinux/config

Setenforce 0

Database installation and configuration 1. MariaDB Overview 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 copy

Yum install mariadb-server mariadb- y

The relevant commands for the mariadb database are:

Systemctl start mariadb # launch MariaDB

Systemctl stop mariadb # stop MariaDB

Systemctl restart mariadb # restart MariaDB

Systemctl enable mariadb # set boot up

III. Installation and configuration of Zabbix3.4

1. Zabbix3.4 pays more attention to the optimization of some small details while the large function remains the same, and more and more configurations can be provided.

1) the brand new dashboard looks a lot better

2) New map navigation tree display

3) support the execution of remote commands through proxy, which is more practical.

4) alarm parallel processing

Wait

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.rpm

Yum 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

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

5. Configure database users and passwords

Copy

Grep-n'^'[amurz] / etc/zabbix/zabbix_server.conf

38:LogFile=/var/log/zabbix/zabbix_server.log

49:LogFileSize=0

72:PidFile=/var/run/zabbix/zabbix_server.pid

99:DBName=zabbix

115:DBUser=zabbix

123:DBPassword=zabbix

314:SNMPTrapperFile=/var/log/snmptrap/snmptrap.log

432:Timeout=4

474:AlertScriptsPath=/usr/lib/zabbix/alertscripts

484:ExternalScripts=/usr/lib/zabbix/externalscripts

520:LogSlowQueries=3000

6. Start zabbix server and set boot

Systemctl enable zabbix-server

Systemctl start zabbix-server

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

Vim / etc/httpd/conf.d/zabbix.conf

Php_value date.timezone Asia/Shanghai

8. SELinux configuration

Setsebool-P httpd_can_connect_zabbix on

Setsebool-P httpd_can_network_connect_db on

9. Start httpd and set boot

Systemctl start httpd

Systemctl enable httpd

Install Zabbix Web1, browser access, and install http://192.168.1.105/zabbix/

The installation process is to click next step all the time as long as there is no prompt to report an error. When all is done, the login screen will appear.

The default login user name is Admin, and the default password is zabbix

The interface after login is shown in the figure above. If you don't like the English interface, you can also change it to Chinese.

The modified interface:

At this point, I believe you have a deeper understanding of the "zabbix3.4 installation textbook", you might as well come to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

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: 271

*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

Internet Technology

Wechat

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

12
Report