On one Mac, virtual hosts are served without a glitch, on another, I am getting connection refused on port 80. This doesn't seem to be a problem with Apache configuration, I think, but something to do with ports. Namely, the machine that fails to serve the virtual host test.dev on 80 shows me this on port scan. I can ping from agent host to server and back. I can telnet from server to host on 10050. When im using that telnet command and look afterwards into log agent files it says could not accept connection from (zabbix server ip) failed reading first byte. And yet still zabbix server shows red marked agent and refuses to connect.
Then I checked out the logs of the Zabbix which is given error below. email protected tail -f varlogzabbixzabbixserver.log 114420210531082544.703 Z3001 connection to database 'zabbix' failed 2002 Can't connect to local MySQL server through socket 'varlibmysqlmysql.sock' (111) 114420210531082544.703 database is down reconnecting. Zabbix agent Connection refused Hi , for testing purpose disable the firewall and type this below command. Telnet the server telnet <server ip> 10050 if it telnet works good ,use below command. usrsbinzabbixagentd -c etczabbixzabbixagentd.conf If it's work then enable the firewall and try again.
Now the default Zabbix Server host already configured in Zabbix is trying to connect to 127.0.0.1 which is then the zabbix-server container. The easy solution is to replace the "127.0.0.1" with the zabbix-agent (or the container name you gave it) and switch to dns.