当前位置:网站首页>ZABBIX 5.0 monitoring client
ZABBIX 5.0 monitoring client
2022-07-04 07:40:00 【Embrace cloud primordial】
zabbix Client Deployment
agent2 The new version uses golang Language development , Can run on multiple cores
agent2 The default with 10050 port , That is to say zabbix Client port
- Old version client ,zabbix-agent
- New version client ,zabbix-agent2
# Machine environment preparation ,1 state zabbix client ( Your computer has good performance and can be configured with multiple )
192.168.10.51 zabbix-agent1
1. Close the firewall and 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
2. Pay attention to the time configuration (server We have to synchronize )
yum install -y ntpdate
ntpdate -u ntp.aliyun.com
4. Unified configuration of time zones (server We have to synchronize )
mv /etc/localtime{
,.bak}
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
5. Configure host name
hostnamectl set-hostname zabbix-agent1
6. Good configuration zabbix Of yum Source
rpm -Uvh https://mirrors.aliyun.com/zabbix/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm
sed -i 's#http://repo.zabbix.com#https://mirrors.aliyun.com/zabbix#' /etc/yum.repos.d/zabbix.repo
7. download agent2 client
yum install -y zabbix-agent2
8. Start the client and set the boot auto start
[[email protected] ~]# systemctl enable --now zabbix-agent2
[[email protected] ~]# netstat -tunlp |grep zabbix
tcp6 0 0 :::10050 :::* LISTEN 8023/zabbix_agent2
9. Modify the client's configuration file
[[email protected] ~]# grep -Ev '^#|^$' /etc/zabbix/zabbix_agent2.conf
PidFile=/var/run/zabbix/zabbix_agent2.pid
LogFile=/var/log/zabbix/zabbix_agent2.log
LogFileSize=0
Server=192.168.10.50
ServerActive=192.168.10.50
Hostname=zabbix-agent1
Include=/etc/zabbix/zabbix_agent2.d/*.conf
ControlSocket=/tmp/agent.sock
10. Restart the client
systemctl restart zabbix-agent2
11. test zabbix Client liquidity
Server-side execution :
yum install -y zabbix-get
[[email protected] ~]# zabbix_get -s '192.168.10.51' -p 10050 -k 'agent.ping'
1
[[email protected] ~]# zabbix_get -s '192.168.10.51' -p 10050 -k 'system.hostname'
zabbix-agent1
zabbix The server itself is detected by default , But there's something wrong with the coding
1. Install Fonts
yum install -y wqy-microhei-fonts
2. Copy font (\cp, Means to remove alias Alias )
\cp /usr/share/fonts/wqy-microhei/wqy-microhei.ttc /usr/share/fonts/dejavu/DejaVuSans.ttf
add to zabbix-agent host
Get into zabbix Of web page —> To configure —> host —> Create a host —> Templates —> establish



边栏推荐
- 节点基础~节点操作
- There is no Chinese prompt below when inputting text in win10 Microsoft Pinyin input method
- 如何用MOS管来实现电源防反接电路
- Directory of tornado
- Project 1 household accounting software (goal + demand description + code explanation + basic fund and revenue and expenditure details record + realization of keyboard access)
- 论文学习——基于极值点特征的时间序列相似性查询方法
- Literature collation and thesis reading methods
- Zabbix agent主动模式的实现
- L1-030 one gang one (15 points)
- Practice (9-12 Lectures)
猜你喜欢

Practice (9-12 Lectures)

Blog stop statement
![[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?

MySQL中的文本處理函數整理,收藏速查

Oracle-存储过程与函数

Introduction to rce in attack and defense world

两年前美国芯片扭捏着不卖芯片,如今芯片堆积如山祈求中国帮忙

Tri des fonctions de traitement de texte dans MySQL, recherche rapide préférée

tornado项目之路由装饰器

Introduction to sap commerce cloud B2B organization function
随机推荐
博客停更声明
真空介电常数和真空磁导率究竟是由什么决定的?为何会存在这两个物理量?
L2-013 red alarm (C language) and relevant knowledge of parallel search
Introduction to rce in attack and defense world
Basic DOS commands
Zhanrui tankbang | jointly build, cooperate and win-win zhanrui core ecology
SQL注入测试工具之Sqli-labs下载安装重置数据库报错解决办法之一(#0{main}thrown in D:\Software\phpstudy_pro\WWW\sqli-labs-……)
Rapidjson reading and writing JSON files
21个战略性目标实例,推动你的公司快速发展
Two years ago, the United States was reluctant to sell chips, but now there are mountains of chips begging China for help
[Mori city] random talk on GIS data (I)
Distributed transaction management DTM: the little helper behind "buy buy buy"
There is no Chinese prompt below when inputting text in win10 Microsoft Pinyin input method
[untitled] notice on holding "2022 traditional fermented food and modern brewing technology"
Literature collation and thesis reading methods
[FreeRTOS] FreeRTOS learning notes (7) - handwritten FreeRTOS two-way linked list / source code analysis
Tri des fonctions de traitement de texte dans MySQL, recherche rapide préférée
Recursive Fusion and Deformable Spatiotemporal Attention for Video Compression Artifact Reduction
Easy to understand: understand the time series database incluxdb
BibTex中参考文献种类