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

Detailed explanation of deployment on server side of zabbix3.0

2025-02-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

Yum configuration

Download yum configuration

Rpm-ivh http://mirrors.aliyun.com/zabbix/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm

Install dependency packages

[root@localhost conf] # yum install zabbix-server zabbix-web zabbix-server-mysql zabbix-web-mysql mariadb-server mariadb- y

Note: zabbix-agent needs to be installed if monitoring is also needed on the Server side.

Modify PHP time zone configuration

Note: all localhost are recommended to be changed to IP, otherwise sometimes an error will be reported and the order can be changed, or you can change it manually and directly. It's simple. Efficient [root@localhost conf] # vim / etc/httpd/conf.d/zabbix.conf [root@localhost conf] # sed-I's database # php_value date.timezone Europe/Riga@php_value date.timezone Asia/Shanghai@g' / etc/httpd/conf.d/zabbix.conf [root@localhost conf] # Database configuration on Centos7 if installed through yum, MySQL has become mariadb. So the startup mode is slightly different to start the database.

[root@localhost conf] # systemctl start mariadb

Create the database used by zabbix

MariaDB [(none)] > create database zabbix character set utf8 collate utf8_bin;Query OK, 1 row affected (0.00 sec) MariaDB [(none)] > grant all on zabbix.* to zabbix@'localhost' identified by '123456 query OK, 0 rows affected (0.00 sec)

Import database

[root@localhost conf] # cd / usr/share/doc/zabbix-server-mysql-3.0.9/ [root@localhost zabbix-server-mysql-3.0.9] # zcat create.sql.gz | mysql- uzabbix-p123456 zabbix [root@localhost zabbix-server-mysql-3.0.9] #

Modify the configuration file

Vim / etc/zabbix/zabbix_server.conf

DBHost=localhost # IP, the host where the database is located

DBName=zabbix # Database name

DBUser=zabbix # database user

DBPassword=*# database password

After the changes are completed, restart the zabbix service

Because of the previous experimental environment, shut down the Nginx service first and start the Apache service

[root@localhost zabbix-server-mysql-3.0.9] # / usr/local/nginx/sbin/nginx-s stop

[root@localhost zabbix-server-mysql-3.0.9] # systemctl start httpd

Start the zabbix service

[root@localhost zabbix-server-mysql-3.0.9] # systemctl start zabbix-server

Browser viewing interface

Interface configuration information

Welcome Check of pre-requisites Configure DB connection Zabbix server details Pre-installation summary Install Pre-installation summary

Please check configuration parameters. If all is correct, press "Next step" button, or "Back" button to change configuration parameters.

Database type MySQL Database server 172.16.1.200 Database port default Database name zabbix Database user zabbix Database password *

Zabbix server localhost Zabbix server port 10051 Zabbix server name zabbix-server

Modify agent configuration file

[root@localhost zabbix-server-mysql-3.0.9] # vim / etc/zabbix/zabbix_agentd.conf

Restart the service

[root@localhost zabbix-server-mysql-3.0.9] # systemctl start zabbix-agent

View Port

[root@localhost zabbix-server-mysql-3.0.9] # ss-lstp | egrep-e "10050 | 10051" LISTEN 0128 *: 10050 *: * users: (("zabbix_agentd", 46212), ("zabbix_agentd", 46211), ("zabbix_agentd", 46210), ("zabbix_agentd", 46209), ("zabbix_agentd", 46208), ("zabbix_agentd") 46207 LISTEN 0 128 *: 10051 *: * users: ("zabbix_server", 45965), ("zabbix_server", 45964), ("zabbix_server", 45963), ("zabbix_server", 45949), ("zabbix_server", 45948), ("zabbix_server", 45947), ("zabbix_server", 4594), ("zabbix_server", 45945), ("zabbix_server") (zabbix_server, 45943), (zabbix_server, 45942), (zabbix_server, 45941), (zabbix_server, 45940), (zabbix_server, 45939), (zabbix_server, 45938), (zabbix_server, 45937), (zabbix_server, 45936), (zabbix_server, 45935), (zabbix_server, 45934), (zabbix_server, 4593), (zabbix_server, 45932), (zabbix_server 45931 users 5), (zabbix_server, 45929), (zabbix_server, 45928), (zabbix_server, 45927), (zabbix_server, 45922) LISTEN 0 128: 10050:: * users: (zabbix_agentd, 46212), (zabbix_agentd, 46211), (zabbix_agentd, 46210), (zabbix_agentd) LISTEN 0 128: 10051:: * users: (zabbix_server, 45965), (zabbix_server, 45964), (zabbix_server, 45963), (zabbix_server, 45949), (zabbix_server, 45948), (zabbix_server, 45947), (zabbix_server) (zabbix_server, 45945), (zabbix_server, 45944), (zabbix_server, 45943), (zabbix_server, 45942), (zabbix_server, 45941), (zabbix_server, 45940), (zabbix_server, 459397), (zabbix_server, 45938), (zabbix_server, 45937), (zabbix_server, 459356), (zabbix_server, 45935), (zabbix_server, 45934), (zabbix_server) (zabbix_server, 45932), (zabbix_server, 45931), (zabbix_server, 45930), (zabbix_server, 45929), (zabbix_server, 45928), (zabbix_server, 45927), (zabbix_server, 45922)) [root@localhost zabbix-server-mysql-3.0.9] #

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