当前位置:网站首页>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
边栏推荐
- Oceanbase is the leader in the magic quadrant of China's database in 2021
- 21 examples of strategic goals to promote the rapid development of your company
- [Flink] temporal semantics and watermark
- L2-013 red alarm (C language) and relevant knowledge of parallel search
- tornado项目之路由装饰器
- Flask 常用组件
- Relations courantes de la fiche de données d'exploitation pour les activités
- 神经网络入门(下)
- flask-sqlalchemy 循环引用
- [network security] what is emergency response? What indicators should you pay attention to in emergency response?
猜你喜欢
Write a thread pool by hand, and take you to learn the implementation principle of ThreadPoolExecutor thread pool
Devops Practice Guide - reading notes (long text alarm)
Project 1 household accounting software (goal + demand description + code explanation + basic fund and revenue and expenditure details record + realization of keyboard access)
论文学习——基于极值点特征的时间序列相似性查询方法
[Flink] temporal semantics and watermark
Experience installing VMware esxi 6.7 under VMware Workstation 16
The IP bound to the socket is inaddr_ The meaning of any htonl (inaddr_any) (0.0.0.0 all addresses, uncertain addresses, arbitrary addresses)
【森城市】GIS数据漫谈(一)
In the era of low code development, is it still needed?
Transition technology from IPv4 to IPv6
随机推荐
Electronic Association C language level 1 34, piecewise function
"Sword finger offer" 2nd Edition - force button brush question
Types of references in BibTex
2022 - 021arts: début du deuxième semestre
User login function: simple but difficult
Valentine's Day is coming! Without 50W bride price, my girlfriend was forcibly dragged away...
L1-028 judging prime number (10 points)
Used on windows Bat file startup project
Book list | as the technical support Party of the Winter Olympics, Alibaba cloud's technology is written in these books!
谷歌官方回应:我们没有放弃TensorFlow,未来与JAX并肩发展
BibTex中参考文献种类
zabbix监控系统邮件报警配置
tornado项目之路由装饰器
Jianmu continuous integration platform v2.2.2 release
Introduction to rce in attack and defense world
jdbc连接es查询的时候,有遇到下面这种情况的大神嘛?
Leetcode(215)——数组中的第K个最大元素
Activiti common operation data table relationship
socket inet_ pton() inet_ Ntop() function (a new network address translation function, which converts the expression format and numerical format to each other. The old ones are inet_aton(), INET_ ntoa
Unity opens the explorer from the inspector interface, selects and records the file path