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进行管理

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

被折叠的 条评论
为什么被折叠?



