agentd端可以直接使用yum来进行安装
rpm -ivh http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-release-2.4-1.el6.noarch.rpm yum -y install zabbix-agent.x86_64 rm -rf /etc/zabbix/zabbix_agentd.conf Server="192.168.189.201" Hostname=`hostname` cat >> /etc/zabbix/zabbix_agentd.conf << EOF Server=$Server ServerActive=$Server Hostname=$Hostname LogFile=/tmp/zabbix_agentd.log EOF /etc/init.d/zabbix-agent start
启动即可
时间: 2024-10-24 20:14:23