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