CentOS安装Zabbix-agent4.0
wget http://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-agent-4.0.3-1.el7.x86_64.rpm
rpm -ivh zabbix-agent-4.0.3-1.el7.x86_64.rpm
systemctl enable zabbix-agent.service
systemctl start zabbix-agent.service
vi /etc/zabbix/zabbix_agentd.conf 修改如下:
# Default: #PidFile=/tmp/zabbix_agentd.pid PidFile=/var/run/zabbix/zabbix_agentd.pid LogFile=/var/log/zabbix/zabbix_agentd.log Server=zabbix.ops.com ServerActive=zabbix.ops.com Hostname=172.16.1.111 HostMetadataItem=system.uname Timeout=30 EnableRemoteCommands=1