当前位置:网站首页>zabbix5客户端安装和配置
zabbix5客户端安装和配置
2022-07-02 18:20:00 【gsls200808】
接上一篇docker安装zabbix5 服务端,这一篇来配置客户端
centos7配置
安装
wget http://repo.zabbix.com/zabbix/5.4/rhel/7/x86_64/zabbix-agent2-5.4.12-1.el7.x86_64.rpm
rpm -ivh zabbix-agent2-5.4.12-1.el7.x86_64.rpm
编辑设置zabbix agent2配置文件
修改如下内容
Server=192.168.3.54
ServerActive=192.168.3.54
HostMetadataItem=system.uname
其中Server和ServerActive改成你自己的服务端IP,HostMetadataItem要去掉前面的注释再修改内容
启动 查看状态 开机自启
systemctl start zabbix-agent2
systemctl status zabbix-agent2
systemctl enable zabbix-agent2
关闭selinux(可能不需要这步)
命令vi /etc/selinux/config,将SELINUX=enforcing改为SELINUX=disabled
放行防火墙
firewall-cmd --permanent --add-port=10050/tcp
firewall-cmd --reload
ubuntu18.04配置
安装
wget http://repo.zabbix.com/zabbix/5.4/ubuntu/pool/main/z/zabbix/zabbix-agent2_5.4.12-1%2Bubuntu18.04_amd64.deb
sudo dpkg -i zabbix-agent2_5.4.12-1+ubuntu18.04_amd64.deb
编辑设置zabbix agent2配置文件
修改如下内容
Server=192.168.3.54
ServerActive=192.168.3.54
HostMetadataItem=system.uname
其中Server和ServerActive改成你自己的服务端IP,HostMetadataItem要去掉前面的注释再修改内容
启动 查看状态 开机自启
systemctl start zabbix-agent2
systemctl status zabbix-agent2
systemctl enable zabbix-agent2
使用iptables放行端口
iptables -A INPUT -p tcp --dport 10050 -j ACCEPT
iptables -A OUTPUT -p tcp --sport 10050 -j ACCEPT
保存放行端口
# 安装iptables-persistent工具,使端口配置持久化
sudo apt-get install iptables-persistent
#弹出框一路回车
# 端口配置永久生效
sudo netfilter-persistent save
sudo netfilter-persistent reload
放行端口配置完后需要重启zabbix-agent2
systemctl restart zabbix-agent2
windows配置
windows agent2下载
下载选型页
https://www.zabbix.com/cn/download_agents?version=5.4&release=5.4.12&os=Windows&os_version=Any&hardware=amd64&encryption=OpenSSL&packaging=MSI&show_legacy=0
直达
https://cdn.zabbix.com/zabbix/binaries/stable/5.4/5.4.12/zabbix_agent2-5.4.12-windows-amd64-openssl.msi
双击安装,安装后在界面中配置Server和ServerActive为你自己的服务端IP,如图
服务端主机添加
先添加自定义群组名 配置--主机群组-创建群组
主机添加 配置-主机-创建主机
windows主机添加如图
linux主机配置如图,主要是模板不一样
过一段时间zabbix图标就变绿了
边栏推荐
- High frequency interview questions
- 横向越权与纵向越权[通俗易懂]
- Juypter notebook modify the default open folder and default browser
- Web2.0 giants have deployed VC, and tiger Dao VC may become a shortcut to Web3
- Horizontal ultra vires and vertical ultra vires [easy to understand]
- 股票证券公司排名,有安全保障吗
- 【pytorch学习笔记】Tensor
- 教程篇(5.0) 10. 故障排除 * FortiEDR * Fortinet 網絡安全專家 NSE 5
- MySQL表历史数据清理总结
- How to print mybats log plug-in using XML file
猜你喜欢
Why should we build an enterprise fixed asset management system and how can enterprises strengthen fixed asset management
PyTorch函数中的__call__和forward函数
Novice must see, click two buttons to switch to different content
Data dimensionality reduction principal component analysis
守望先锋世界观架构 ——(一款好的游戏是怎么来的)
codeforces每日5题(均1700)-第四天
为什么要做企业固定资产管理系统,企业如何加强固定资产管理
Excel finds the same value in a column, deletes the row or replaces it with a blank value
Codeworks 5 questions per day (1700 average) - day 4
云呐|为什么要用固定资产管理系统,怎么启用固定资产管理系统
随机推荐
MySQL表历史数据清理总结
Web2.0 giants have deployed VC, and tiger Dao VC may become a shortcut to Web3
论文导读 | 机器学习在数据库基数估计中的应用
论文导读 | 关于将预训练语言模型作为知识库的分析与批评
#gStore-weekly | gStore源码解析(四):安全机制之黑白名单配置解析
ICDE 2023|TKDE Poster Session(CFP)
Why should we build an enterprise fixed asset management system and how can enterprises strengthen fixed asset management
思维意识转变是施工企业数字化转型成败的关键
[100 cases of JVM tuning practice] 03 -- four cases of JVM heap tuning
性能测试如何创造业务价值
[0701] [论文阅读] Alleviating Data Imbalance Issue with Perturbed Input During Inference
[test development] takes you to know what software testing is
[paper reading] Ca net: leveraging contextual features for lung cancer prediction
yolov3 训练自己的数据集之生成train.txt
使用 Cheat Engine 修改 Kingdom Rush 中的金钱、生命、星
[论文阅读] CA-Net: Leveraging Contextual Features for Lung Cancer Prediction
Reduce -- traverse element calculation. The specific calculation formula needs to be passed in and combined with BigDecimal
第七章-类基础
ORA-01455: converting column overflows integer datatype
MySQL高级(进阶)SQL语句