当前位置:网站首页>ZABBIX monitoring system deployment
ZABBIX monitoring system deployment
2022-07-04 07:40:00 【Embrace cloud primordial】
zabbix Program components
zabbix The components are :
- Zabbix_server, Server daemons .
- Zabbix_agentd,agent Daemon
- zabbix_proxy, proxy server
- zabbix_database, The storage system ,mysql,pgsql
- Zabbix_web,web GUI Graphical interface
- Zabbix_get, Command line tools , Test direction agent Initiate data collection request .
- Zabbix_sender, Command line tools , Test direction server send data
- Zabbix_java_gateway,java gateway
zabbix Server deployment
zabbix5.0 Version pair php Version requirements , Is the minimum 7.2.0 edition ; Yes php The extension component version also has requirements , See the official documents for details
https://www.zabbix.com/documentation/5.0/zh/start
Get one ready Linux The server , Set it up IP Address ,yum Source, etc
1. Set host name
[[email protected] ~]# hostnamectl set-hostname server
[[email protected] ~]# hostname
server
2. Turn off firewall ,selinux
[[email protected] ~]# systemctl stop firewalld && systemctl disable firewalld
Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
[[email protected] ~]# setenforce 0
[[email protected] ~]# sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
3.zabbix-server Try to have more memory ,4G For good ( following 2G)
[[email protected] ~]# free -m
total used free shared buff/cache available
Mem: 1980 120 1446 9 414 1661
Swap: 2047 0 2047
4. obtain zabbix Download source
rpm -Uvh https://mirrors.aliyun.com/zabbix/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm
5. Replace zabbix.repo From Ali
sed -i 's#http://repo.zabbix.com#https://mirrors.aliyun.com/zabbix#' /etc/yum.repos.d/zabbix.repo
6. Empty yum Source cache , Generate new cache
yum clean all
yum makecache
7. install zabbix server and agent
yum install -y zabbix-server-mysql zabbix-agent
8. install Software Collections, It is convenient for later installation of higher version of php, Default yum install php Version is 5.4 too low ;SCL(Software Collections) You can install and use multiple versions of software on the same operating system , Without affecting the installation package of the whole system ; The package will be installed in /opt/rh Under the table of contents ;/etc/opt/rh/ All configuration files of the software package are stored in the corresponding directory in the directory
[[email protected] ~]# yum install -y centos-release-scl
9. stay zabbix.repo Source on zabbix-front Front end source
[zabbix-frontend]
name=Zabbix Official Repository frontend - $basearch
baseurl=https://mirrors.aliyun.com/zabbix/zabbix/5.0/rhel/7/$basearch/frontend
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591
10. install zabbix Front end environment , And it is installed in scl In the environment
[[email protected] ~]# yum install -y zabbix-web-mysql-scl zabbix-apache-conf-scl
11. install azbbix The required database ,mariadb/mysql
[[email protected] ~]# yum install mariadb-server -y
12. Configure the database startup
[[email protected] ~]# systemctl enable --now mariadb
Created symlink from /etc/systemd/system/multi-user.target.wants/mariadb.service to /usr/lib/systemd/system/mariadb.service.
13. Initialize the database and set root password
[[email protected] ~]# mysql_secure_installation
14. Add database users and zabbix Required database information
[[email protected] ~]# mysql -uroot -pqhj666
MariaDB [(none)]> create database zabbix character set utf8 collate utf8_bin;
Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]> create user [email protected] identified by 'qhj666';
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> grant all on zabbix.* to [email protected];
Query OK, 0 rows affected (0.00 sec)
15. Use zabbix-mysql command , Import database information ( here -p What is specified later is zabbix database )
[[email protected] ~]# zcat /usr/share/doc/zabbix-server-mysql-5.0.11/create.sql.gz | mysql -uzabbix -p zabbix
Enter password:
16. modify zabbix server The configuration file , Change the password of the database
[[email protected] ~]# grep "^DBP" /etc/zabbix/zabbix_server.conf
DBPassword=qhj666
17. modify zabbix Of php The configuration file
[[email protected] ~]# tail -1 /etc/opt/rh/rh-php72/php-fpm.d/zabbix.conf
php_value[date.timezone] = Asia/Shanghai
18. start-up zabbix Related services
[[email protected] ~]# systemctl restart zabbix-server zabbix-agent httpd rh-php72-php-fpm
[[email protected] ~]# systemctl enable zabbix-server zabbix-agent httpd rh-php72-php-fpm
19. Browser Test Access zabbix( Default account Admin, password zabbix)
192.168.10.50/zabbix
After deployment
Use browser access :http://192.168.10.50/zabbix
Default password :Admin/zabbix
边栏推荐
- 深入浅出:了解时序数据库 InfluxDB
- L1-023 output gplt (20 points)
- User login function: simple but difficult
- Blog stop statement
- Zhanrui tankbang | jointly build, cooperate and win-win zhanrui core ecology
- BUUCTF(3)
- Adaptive spatiotemporal fusion of multi-target networks for compressed video perception enhancement
- 节点基础~节点操作
- When JDBC connects to es query, is there a God who meets the following situation?
- The cloud native programming challenge ended, and Alibaba cloud launched the first white paper on application liveliness technology in the field of cloud native
猜你喜欢
![[web security] nodejs prototype chain pollution analysis](/img/b6/8eddc9cbe343f2439da92bf342b0dc.jpg)
[web security] nodejs prototype chain pollution analysis

BasicVSR++: Improving Video Super-Resolutionwith Enhanced Propagation and Alignment

Introduction to neural network (Part 2)
![[network security] what is emergency response? What indicators should you pay attention to in emergency response?](/img/2e/96da79d82ae2c49a3a0ab9909467ac.jpg)
[network security] what is emergency response? What indicators should you pay attention to in emergency response?

Introduction to sap commerce cloud B2B organization function

Boosting the Performance of Video Compression Artifact Reduction with Reference Frame Proposals and

【Kubernetes系列】Kubernetes 上安装 KubeSphere

Devops Practice Guide - reading notes (long text alarm)

Detailed introduction to the big changes of Xcode 14

It's healthy to drink medicinal wine like this. Are you drinking it right
随机推荐
There is no Chinese prompt below when inputting text in win10 Microsoft Pinyin input method
人生规划(Flag)
OKR vs. KPI figure out these two concepts at once!
时序数据库 InfluxDB 2.2 初探
SQL注入测试工具之Sqli-labs下载安装重置数据库报错解决办法之一(#0{main}thrown in D:\Software\phpstudy_pro\WWW\sqli-labs-……)
Zephyr study notes 2, scheduling
博客停更声明
Zhanrui tankbang | jointly build, cooperate and win-win zhanrui core ecology
深入浅出:了解时序数据库 InfluxDB
L1-027 rental (20 points)
Tri des fonctions de traitement de texte dans MySQL, recherche rapide préférée
[Android reverse] function interception (use cache_flush system function to refresh CPU cache | refresh CPU cache disadvantages | recommended time for function interception)
神经网络入门(下)
Leetcode(215)——数组中的第K个最大元素
【FreeRTOS】FreeRTOS学习笔记(7)— 手写FreeRTOS双向链表/源码分析
[untitled] notice on holding "2022 traditional fermented food and modern brewing technology"
节点基础~节点操作
Experience installing VMware esxi 6.7 under VMware Workstation 16
Guoguo took you to write a linked list, and the primary school students said it was good after reading it
【森城市】GIS数据漫谈(一)