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 zabbix monitoring system

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

Share

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

This article will introduce you to the tutorial of installing and deploying zabbix monitoring system in detail. The detailed steps are clear and the details are handled properly. I hope you can gain something through this article. Let's first take a look at the configuration steps:

1. Modify hostname

Vim / etc/hostname, modified to zabbix-server

two。 Network card configuration

Vim / etc/sysconfig/network-scripts/ifcfg-eno16780032

3. Turn off the firewall and selinux

Systemctl stop firewalld.service

Systemctl disable firewalld.service

4. Close selinux

Vim / etc/selinux/config, modified to: SELINUX=disabled

5. Initialize the system (kernel optimization, etc., optional)

6. Configure yum Feed

Rpm-Uvh https://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm

Yum clean all

Yum makecache

7. Install the zabbix server

Yum-y install zabbix-server-mysql zabbix-web-mysql zabbix-agent

8. Start zabbix-server zabbix-agent httpd

Systemctl restart zabbix-server zabbix-agent httpd

Systemctl enable zabbix-server zabbix-agent httpd

9. Download database server and client

Wget https://cdn.mysql.com/archives/mysql-5.6/MySQL-server-5.6.43-1.el7.x86_64.rpm

Wget https://cdn.mysql.com//Downloads/MySQL-5.6/MySQL-client-5.6.43-1.el7.x86_64.rpm

10. Database server and client installation

Rpm-ivh MySQL-server-5.6.43-1.el7.x86_64.rpm-- force-nodeps

Rpm-ivh MySQL-client-5.6.43-1.el7.x86_64.rpm-force-nodeps

11. Create related directories and directory authorization

Mkdir-p / data/mysql/

Chown-R mysql.mysql / data/mysql/

twelve。 Modify database configuration file

Vim / etc/my.cnf

[client]

Port = 3306

Socket = / data/mysql/mysql.sock

[mysqld]

User = mysql

Port = 3306

Character-set-server = utf8

Default-storage-engine = InnoDB

Socket = / data/mysql/mysql.sock

Pid-file = / data/mysql/mysql.pid

# DATA STORAGE #

Datadir = / data/mysql/

Innodb_data_file_path = ibdata1:1024M:autoextend

Innodb_data_home_dir = / data/mysql/

Innodb_log_group_home_dir = / data/mysql/

# LOGGING #

Log-error = / data/mysql/mysql-error.log

Log-queries-not-using-indexes = 0

Slow-query-log = 1

Long_query_time = 2

Slow-query-log-file = / data/mysql/mysql-slow.log

Lower_case_table_names = 1

Skip-grant-tables

13. Initialize the database

/ usr/bin/mysql_install_db-user=mysql-datadir=/data/mysql-pid-file=/data/mysql/mysql.pid

14. Start the database and set the root password

/ etc/init.d/mysql restart

Mysqladmin-h 127.0.0.1-uroot-p password

15. Log in to the database, mysql-uroot-p

16. The password for creating a zabbix database zabbix database is zabbix

Create database zabbix character set utf8 collate utf8_bin

Grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix'

17. Import database

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

18. Edit the Zabbix front-end PHP configuration, mainly to change the time zone

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

Modify this line: php_value date.timezone Asia/Shanghai

Systemctl restart httpd

19. Browser access and configuration

Http://192.168.8.133/zabbix/

20. Modify to Chinese interface

Find the corresponding user under Adminstration-- > Users, click in, find Language, select Chinese (zh_CN), and refresh the page to switch to the Chinese interface.

21. Zabbix client installation configuration

Centos7:

Rpm-Uvh https://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm

Yum-y install zabbix-agent

Systemctl enable zabbix-agent

Sed-I's Universe servers 127.0.0.1 Universe 192.168.8.133 Universe / etc/zabbix/zabbix_agentd.conf

Sed-I's Universe 127.0.0.1 Universe 192.168.8.133 Compact / etc/zabbix/zabbix_agentd.conf

Echo "192.168.8.133 Zabbix server" > > / etc/hosts

Systemctl restart zabbix-agent

Centos6:

Rpm-ivh http://repo.zabbix.com/zabbix/3.4/rhel/6/x86_64/zabbix-release-3.4-1.el6.noarch.rpm

Yum install zabbix-agent

Chkconfig zabbix-agent on

Sed-I's Universe servers 127.0.0.1 Universe 192.168.8.133 Universe / etc/zabbix/zabbix_agentd.conf

Sed-I's Universe 127.0.0.1 Universe 192.168.8.133 Compact / etc/zabbix/zabbix_agentd.conf

Echo "192.168.8.133 Zabbix server" > > / etc/hosts

Service zabbix-agent start

Configure hosts for the zabbix-server server

Vim / etc/hosts

The host that contains the server and all clients

Complete the configuration of the monitoring project according to the monitoring needs

After reading this article, have you learned to install and deploy zabbix monitoring system? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel. Thank you for reading.

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