创建主机
配置基本信息
配置好后点击添加即可:
[root@localhost opt]# systemctl start zabbix-agent [root@localhost opt]# netstat -antup|grep zabbix tcp 0 0 0.0.0.0:10050 0.0.0.0:* LISTEN 10556/zabbix_agentd tcp 0 0 0.0.0.0:10051 0.0.0.0:* LISTEN 10169/zabbix_server tcp 0 1 192.168.43.13:34422 192.168.43.12:10051 SYN_SENT 10561/zabbix_agentd tcp6 0 0 :::10050 :::* LISTEN 10556/zabbix_agentd tcp6 0 0 :::10051 :::* LISTEN 10169/zabbix_server [root@localhost opt]# tail -300f /var/log/zabbix/zabbix_agentd.log
问题:
解决办法:zabbix_agentd.conf 配置没配好,改成主机重启即可
vi /etc/zabbix/zabbix_agentd.conf
Server=192.168.43.13 ServerActive=192.168.43.12
systemctl restart zabbix-agent