当前位置:网站首页>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
边栏推荐
- 输入年份、月份,确定天数
- 弈柯莱生物冲刺科创板:年营收3.3亿 弘晖基金与淡马锡是股东
- zabbix监控系统邮件报警配置
- Introduction to neural network (Part 2)
- How to use MOS tube to realize the anti reverse connection circuit of power supply
- PCIE知识点-010:PCIE 热插拔资料从哪获取
- L1-022 odd even split (10 points)
- [real case] how to deal with the failure of message consumption?
- Mysql database - function constraint multi table query transaction
- University stage summary
猜你喜欢
JVM中堆概念
Introduction to sap commerce cloud B2B organization function
A real penetration test
[Android reverse] function interception (use cache_flush system function to refresh CPU cache | refresh CPU cache disadvantages | recommended time for function interception)
Thesis learning -- time series similarity query method based on extreme point characteristics
神经网络入门(下)
Oceanbase is the leader in the magic quadrant of China's database in 2021
The idea of implementing charts chart view in all swiftui versions (1.0-4.0) was born
Unity opens the explorer from the inspector interface, selects and records the file path
[Flink] temporal semantics and watermark
随机推荐
The text box displays the word (prompt text) by default, and the text disappears after clicking.
Summary of MySQL common judgment functions!! Have you used it
When JDBC connects to es query, is there a God who meets the following situation?
MySQL中的文本處理函數整理,收藏速查
This article is enough for learning advanced mysql
Xcode 14之大变化详细介绍
Valentine's Day is coming! Without 50W bride price, my girlfriend was forcibly dragged away...
One of the general document service practice series
节点基础~节点操作
Directory of tornado
How to reset IntelliSense in vs Code- How to reset intellisense in VS Code?
University stage summary
Easy to understand: understand the time series database incluxdb
21个战略性目标实例,推动你的公司快速发展
How to write a summary of the work to promote the implementation of OKR?
Electronic Association C language level 1 34, piecewise function
[web security] nodejs prototype chain pollution analysis
Node foundation ~ node operation
JVM -- class loading process and runtime data area
SQL foundation 9 [grouping data]