centos7 安装 zabbix-agent

版权声明:QQ:1009002494 https://blog.csdn.net/Doudou_Mylove/article/details/85090516

关闭SELinux
    sed -i "s/SELINUX=enforcing/SELINUX=disabled/" /etc/selinux/config
    setenforce 0


防火墙设置,允许zabbix-agent的10050端口通过
    firewall-cmd --permanent --add-port=10050/tcp
    firewall-cmd --reload

当然。你也可以关闭防火墙:
    systemctl stop firewalld
    systemctl disable firewalld


安装zabbix 软件源
rpm -ivh http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm


安装zabbix-agent
yum install zabbix-sender zabbix-agent zabbix-get


在 /etc/zabbix/zabbix_agentd.conf 中更改:
    Server=<zbx-server的ip>
    ServerActive=<zbx-server的ip>
    Hostname=<本机的名字>


设置启动和开机项
    systemctl start zabbix-agent.service
    systemctl enable zabbix-agent.service
   

猜你喜欢

转载自blog.csdn.net/Doudou_Mylove/article/details/85090516