Meet a demand, the customer's host are intranet, Zabbix-server end is in the cloud, belonging to the public network IP, meaning that the public network monitoring intranet host (intranet host IP is mostly private network)
After querying the data, we need to use the active monitoring mode environment of Zabbix.
CentOS 6.9
Installing Zabbix-agent
#rpm-ivh http://repo.zabbix.com/zabbix/3.2/rhel/6/x86_64/zabbix-release-3.2-1.el6.noarch.rpm
# yum Install Zabbix-agent
# vi/etc/zabbix/zabbix_agentd.conf
server=122.200.66.101 (zabbix-server IP)
ServerActive =122.200.66.101 (zabbix-server IP)
hostname=agent02 (client host name)
startagents=0 (active mode)
# service Zabbix-agent Restart
First operation on the agent side
The configuration of the client is changed a few lines.
Logfile=/tmp/zabbix_agentd.log
startagents=0 #客户端agent模式, set to 0 to turn off passive mode
server=**.**.**.** If set to pure passive mode, you should comment out this instruction
serveractive=**.**.**.** #主动模式的server IP address
hostname=test_host # Important: The client's hostname, generally use the native IP
refreshactivechecks=120 #被监控端到服务器获取监控项的周期, the default 120s can be
buffersize=200 #被监控端存储监控信息的空间大小
timeout=10 #超时时间
Server Side
Need to change the type of monitoring item in the template