您的位置:首页 > 产品设计 > 产品经理

zabbix agent rpm 包安装

2017-12-25 11:40 316 查看

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进行管理
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: