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

CentOS 7.3 install Zabbix 3.2.6 record

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

1. Prepare to install zabbix

This article uses the operating system: CentOS7.3 x64

Epel source required

Wget https://mirrors.tuna.tsinghua.edu.cn/epel/epel-release-latest-7.noarch.rpm

Rpm-ivh epel-release-latest-7.noarch.rpm

two。 Download the zabbix rpm installation package

Wget http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-agent-3.2.6-1.el7.x86_64.rpm

Wget http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-get-3.2.6-1.el7.x86_64.rpm

Wget http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-proxy-mysql-3.2.6-1.el7.x86_64.rpm

Wget http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2.6-1.el7.noarch.rpm

Wget http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-sender3.2.6-1.el7.x86_64.rpm

Wget http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-server-mysql-3.2.6-1.el7.x86_64.rpm

Wget http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-web-3.2.6-1.el7.noarch.rpm

Wget http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-web-mysql-3.2.6-1.el7.noarch.rpm

3. View the installation packages required by zabbix

Yum install zabbix-*

4. Install the official mysql Community Edition

Wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm

Rpm-ivh mysql-community-release-el7-5.noarch.rpm

Yum install-y mysql-community-server

5. Start mysql

Systemctl enable mysqld

Systemctl start mysqld

Create a password:

Mysql_secure_installation

Mysql-uroot-p

6. Create a zabbix database and authorize

Mysql-uroot-p

Mysql > create database zabbix character set utf8 collate utf8_bin

Mysql > grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix'

Mysql > flush privileges

Mysql > quit

7. Import zabbix database

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

8. Modify zabbix configuration, mainly setting user name and password of zabbix database

# vi / etc/zabbix/zabbix_server.conf

Configure the default database user name

DBUser=zabbix

DBPassword=zabbix

Others can default.

9. Start the zabbix service and set it to boot

Systemctl enable zabbix-server

Systemctl start zabbix-server

10. Edit the php configuration of the zabbix front end to change the next time zone

Vi / etc/httpd/conf.d/zabbix.conf

Get rid of the # before the time zone and change the position

Php_value date.timezone Asia/Shanghai

11. Start the apache service and set it to boot

Systemctl enable httpd

Systemctl start httpd

twelve。 Log in to zabbix

Http://xxx.xxx.xxx.xxx/zabbix

User name Admin/zabbix

13. Modify the interface to Chinese, and change the admin/ language to ZH_CN.14. Upload Chinese font, msyh.ttf, and then upload to / usr/share/zabbix/fonts

Line 45, change graphfont to msyh

Vi / usr/share/zabbix/include/defines.inc.php

15. Agent client installation

(1) other clients only need to install the following agent. 5.x/6.x can download and install the corresponding 3.2.6-1rpm package.

Rpm-ihv zabbix-agent-3.2.6-1.el7.x86_64

Rpm-ihv zabbix-get-3.2.6-1.el7.x86_64.rpm

Rpm-ihv zabbix-sender-3.2.6-1.el7.x86_64.rpm

The easiest thing to do is to install the agent package that corresponds to the operating system version.

(2) modify the configuration file

# vi / etc/zabbix/zabbix_agentd.conf

Modify:

Server=zabbix server address

ServerActive=zabbix server address

Hostname= your client name

(3) configure agent service and configure boot self-startup, and pay attention to opening firewall port 10050.

Systemctl enable zabbix-agent

Systemctl start zabbix-agent

(4) Test the zabbix client

Zabbix_get-s 192.168.1.90-p 10050-k "system.hostname"

Client

16. Other questions

Resolve the problem of incorrect default (Template OS Linux) payload values:

Modify template (Template OS Linux)-Project-Processor load (1, 5, 15 min average per core) key values:

Change system.cpu.load [percpu,avg1] to system.cpu.load [all,avg1]

Change system.cpu.load [percpu,avg5] to system.cpu.load [all,avg5]

Change system.cpu.load [percpu,avg15] to system.cpu.load [all,avg15]

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

Database

Wechat

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

12
Report