zabbix agent rpm 包安装

本文详细介绍了Zabbix Agent在Linux环境下通过Ansible批量部署的过程,包括rpm包的安装、配置文件的修改、权限设置及服务启动等步骤,并指导如何在Zabbix Web界面上进行相应的管理操作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

zabbix agent 安装流程

history | grep test_hadoop

967 ansible test_hadoop -m copy -a “src=/data/download/zabbix-agent-3.2.6-1.el7.x86_64.rpm dest=/data/download”

1007 ansible test_hadoop -m shell -a ” cd /data/download && yum install -y zabbix-agent-3.2.6-1.el7.x86_64.rpm “

1009 ansible test_hadoop -m shell -a ” sed -i “s/Hostname=Zabbix server/Hostname=ifconfig eth0 |grep "inet " |awk '{print $2}' | tr -d "addrs"/g” /etc/zabbix/zabbix_agentd.conf “

1012 ansible test_hadoop -m shell -a ” sed -i ‘s/ServerActive=127.0.0.1/ServerActive=172.16.1.10/g’ /etc/zabbix/zabbix_agentd.conf ”

1014 ansible test_hadoop -m shell -a ” chattr -i /etc/group ”
1015 ansible test_hadoop -m shell -a ” groupadd zabbix “

1017 ansible test_hadoop -m shell -a ” chattr -i /etc/passwd ”
1019 ansible test_hadoop -m shell -a ” chattr -i /etc/shadow ”
1020 ansible test_hadoop -m shell -a ” useradd -g zabbix zabbix “

1022 ansible test_hadoop -m shell -a ” chown zabbix:zabbix /run/zabbix “

1024 ansible test_hadoop -m shell -a ” chown zabbix:zabbix /var/log/zabbix ”
1025 ansible test_hadoop -m shell -a ” systemctl start zabbix-agent “

之后到 zabbix web进行管理

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

mtj66

看心情

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值