当前位置:网站首页>ZABBIX deployment instructions (server+win client + switch (H3C))
ZABBIX deployment instructions (server+win client + switch (H3C))
2022-06-27 08:03:00 【dog6507371】
Deploy Zabbix Stepped on several pits , This document records the deployment instructions in detail , There are also screenshots at each step , More suitable for novice operation .
Server deployment
Environmental preparation :
Centos 7.0 X64
Shell Sign in root user
1. Turn off firewall :
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
systemctl disable --now firewalld

2. obtain zabbix Download source
rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm

3. Replace zabbix.repo Source , For Ali
sed -i 's#http://repo.zabbix.com#https://mirrors.aliyun.com/zabbix#' /etc/yum.repos.d/zabbix.repo
5. Empty cache , download zabbix Server side
yum clean all

yum makecache

yum install zabbix-server-mysql zabbix-agent –y

6. Installation tools , Can be on the machine , Use multiple versions of software , And it will not affect the dependency environment of the whole system
yum install centos-release-scl -y

7. change zabbix.repo in zabbix-frontend The numerical
vi /etc/yum.repos.d/zabbix.repo

After a change esx :wq Save and exit
8. install zabbix Front end environment , And is installed to scl In the environment

yum install zabbix-web-mysql-scl zabbix-apache-conf-scl –y
9. install zabbix The required database ,mariadb
yum install mariadb-server –y

10. Configure the database startup
systemctl enable --now mariadb
11. Initialize database , And set the password
mysql_secure_installation
mysql -u root -p Get into mysql database Input password
12. Add database users ## The following operations are database operations
# Access to database , Create a zabbix database :
create database zabbix character set utf8 collate utf8_bin;
# Create a zabbix user , password 123
create user [email protected] identified by '123';
# Modify the permissions
grant all privileges on zabbix.* to [email protected];
# sign out
\quit
13. Use zabbix-mysql command , Import database information
# mysql -u user name -p Database name
zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -u zabbix -p zabbix
# Input password 123
![]()
14. modify zabbix server The configuration file , Change database password
# Get into /etc/zabbix/zabbix_server.conf in , modify DBPassword Password for database
vim /etc/zabbix/zabbix_server.conf
DBPassword=123

# Check whether the modification is successful
grep '^DBPass' /etc/zabbix/zabbix_server.conf
15. modify zabbix PHP Configuration file for
# Get into /etc/opt/rh/rh-php72/php-fpm.d/zabbix.conf Change the last line in to php_value[date.timezone] = Asia/Shanghai
Vi /etc/opt/rh/rh-php72/php-fpm.d/zabbix.conf
systemctl restart rh-php72-php-fpm # restart PHP service
16. start-up zabbix Related server
systemctl restart zabbix-server zabbix-agent httpd rh-php72-php-fpm
systemctl enable zabbix-server zabbix-agent httpd rh-php72-php-fpm
17. visit zabbix entrance
This machine ip/zabbix
18. The default user name after successful installation :Admin, The password is :zabbix
Install client
Client installation (Win edition )
1、 Official website download client
https://www.zabbix.com/cn/download_agents
2、 Install client , Update configuration information
Installation directory conf The file editing configuration is as follows
# This is a configuration file for Zabbix agent service (Windows)
# To get more information about Zabbix, visit http://www.zabbix.com
LogFile=C:\Program Files\Zabbix Agent\zabbix_agentd.log #Log File address
Server=192.168.11.159 # Server address
ListenPort=10050
ServerActive=192.168.11.159 # Server address
Hostname=192.168.10.113 # Client host IP
Include=C:\Program Files\Zabbix Agent\zabbix_agentd.d\
3、 Add a host to the server Hostname enter the computer name IP Address input IP Address Wait a few minutes for the automatic addition to succeed
H3C Switch deployment instructions
Turn on snmp Function command
Systemview View :
snmp-agent
snmp-agent sys-info version v2
display information :SNMPv1 and SNMPv2c are insecure because they transmit the community string and data in plaintext form.
snmp-agent community read public
snmp-agent sys-info version v2c v3
display information :SNMPv1 and SNMPv2c are insecure because they transmit the community string and data in plaintext form.
snmp-agent trap enable
snmp-agent target-host trap address udp-domain 192.168.11.159 udp-port 161 params securityname public v2c
#192.168.11.159 by zabbix Of IP Address
Zabbix Add the host as shown in the following figure



边栏推荐
- Experience record of Luogu's topic brushing
- The IPO of Yefeng pharmaceutical was terminated: Yu Feng, the actual controller who had planned to raise 540million yuan, made P2P investment
- Coal crusher
- js中输入三个值,并且由小到大输出
- js例题打印1-100之间所有7的倍数的个数及总和
- Mysql-8 download, installation and configuration tutorial under Windows
- js成绩奖惩例题
- Ready to migrate to the cloud? Please accept this list of migration steps
- [11. two dimensional difference]
- How to bind SQL statements to web buttons
猜你喜欢

lvgl 说明3关于lvgl guider的使用

【批处理DOS-CMD命令-汇总和小结】-cmd的内部命令和外部命令怎么区分,CMD命令和运行(win+r)命令的区别,
![[compilation principles] review outline of compilation principles of Shandong University](/img/a6/b522a728ff21085411e7452f95872a.png)
[compilation principles] review outline of compilation principles of Shandong University

lvgl使用demo及说明2

【10. 差分】

Reference | upgrade win11 mobile hotspot can not be opened or connected

05 observer mode

JS output all prime numbers between 1-100 and calculate the total number

「短视频」临夏消防救援支队开展消防安全培训授课

Mapping of Taobao virtual product store opening tutorial
随机推荐
1-4 decimal representation and conversion
基础知识 | js基础
JS output all prime numbers between 1-100 and calculate the total number
Implementation principle of similarity method in Oracle
Blind survey shows that female code farmers are better than male code farmers
Helix QAC is updated to 2022.1 and will continue to provide high standard compliance coverage
参考 | Win11 开启热点之后电脑不能上网
[c++ primer notes] Chapter 4 expression
[batch dos-cmd command - summary and summary] - output / display command - echo
Sword finger offer 07 Rebuild binary tree
Mobile security tools -jad
Etcd tutorial - Chapter 5 etcd etcdctl usage
[12. maximum continuous non repeating subsequence]
Implementation of game hexagon map
Windows下mysql-8下载、安装、配置教程
【论文阅读】Intrinsically semi-supervised methods
Basic knowledge | JS Foundation
c#的初步认识
【批处理DOS-CMD命令-汇总和小结】-输出/显示命令——echo
How can the flower e-commerce 2.0 era go after the breakthrough from 0 to 1?