I have salved the question by rewirte the zabbix_agentd.conf
.
Because both of the vps are on internet outside and have the public iP .
A is the server and B makes up the agent.
What I do not realize is that there are multiple IP for A (the zabbix_server). So the IP that I do write in the zabbix_agentd.conf
is wrong.
How can I find it? I telnet B_IP:10050
from A and netstat -an | grep 10050
on the B. Then I find out the solution.
######zabbix_agentd.conf#######
****
Server=119.XXX.XXX.43;119.xxx.xxx.46
****
#####zabbix_agentd.conf########
Excuse me, my englis is so-so and before the mismathc IP are find out I have check the iptables, selinux etc.