当前位置:网站首页>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
边栏推荐
- Boosting the Performance of Video Compression Artifact Reduction with Reference Frame Proposals and
- Zephyr Learning note 2, Scheduling
- Improve the accuracy of 3D reconstruction of complex scenes | segmentation of UAV Remote Sensing Images Based on paddleseg
- [network security] what is emergency response? What indicators should you pay attention to in emergency response?
- Oceanbase is the leader in the magic quadrant of China's database in 2021
- 论文学习——基于极值点特征的时间序列相似性查询方法
- PCIe knowledge points -010: where to get PCIe hot plug data
- The text box displays the word (prompt text) by default, and the text disappears after clicking.
- Easy to understand: understand the time series database incluxdb
- Preliminary study on temporal database incluxdb 2.2
猜你喜欢

win10微软拼音输入法输入文字时候下方不出现中文提示

L2-013 red alarm (C language) and relevant knowledge of parallel search

Improve the accuracy of 3D reconstruction of complex scenes | segmentation of UAV Remote Sensing Images Based on paddleseg

The idea of implementing charts chart view in all swiftui versions (1.0-4.0) was born

Write a thread pool by hand, and take you to learn the implementation principle of ThreadPoolExecutor thread pool
![[kubernetes series] kubesphere is installed on kubernetes](/img/2b/eb39cf78b3bb9908b01f279e2f9958.png)
[kubernetes series] kubesphere is installed on kubernetes

Oceanbase is the leader in the magic quadrant of China's database in 2021

PCIE知识点-010:PCIE 热插拔资料从哪获取

Easy to understand: understand the time series database incluxdb

The cloud native programming challenge ended, and Alibaba cloud launched the first white paper on application liveliness technology in the field of cloud native
随机推荐
Label management of kubernetes cluster
[Gurobi] 简单模型的建立
L1-025 positive integer a+b (15 points)
In the era of low code development, is it still needed?
[untitled] notice on holding "2022 traditional fermented food and modern brewing technology"
What are the work contents of operation and maintenance engineers? Can you list it in detail?
Improve the accuracy of 3D reconstruction of complex scenes | segmentation of UAV Remote Sensing Images Based on paddleseg
Is l1-029 too fat (5 points)
Enter the year, month, and determine the number of days
How to reset IntelliSense in vs Code- How to reset intellisense in VS Code?
谷歌官方回应:我们没有放弃TensorFlow,未来与JAX并肩发展
节点基础~节点操作
Computer connects raspberry pie remotely through putty
Zephyr 学习笔记1,threads
Zhanrui tankbang | jointly build, cooperate and win-win zhanrui core ecology
[freertos] freertos Learning notes (7) - written freertos bidirectionnel Link LIST / source analysis
2022-021ARTS:下半年开始
Types of references in BibTex
How does dataframe calculate the average value of each row as another column
L1-023 output gplt (20 points)