I hope you're doing well.
I am currently facing an issue where I am able to create a Wazuh agent, but it is not connecting to the Wazuh server. I am running Wazuh Manager, Wazuh Indexer, Wazuh Dashboard, and the agent all within Docker containers on my Arch Linux-based Athena OS.
I have checked the configuration and the Wazuh manager's IP address is set correctly in the agent configuration file (172.19.0.3), and the ports are open as shown below:
[root@athena xghost]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
b9669aa23262 wazuh/wazuh-dashboard:4.5.2 "/entrypoint.sh" 23 hours ago Up 2 hours 443/tcp, 0.0.0.0:443->5601/tcp, [::]:443->5601/tcp single-node-wazuh.dashboard-1
2486ad81b53f wazuh/wazuh-manager:4.5.2 "/init" 23 hours ago Up 53 minutes 0.0.0.0:1514-1515->1514-1515/tcp, [::]:1514-1515->1514-1515/tcp, 0.0.0.0:514->514/udp, [::]:514->514/udp, 0.0.0.0:55000->55000/tcp, [::]:55000->55000/tcp, 1516/tcp single-node-wazuh.manager-1
2784fb1258b7 wazuh/wazuh-indexer:4.5.2 "/entrypoint.sh open…" 23 hours ago Up 2 hours 0.0.0.0:9200->9200/tcp, [::]:9200->9200/tcp single-node-wazuh.indexer-1
[root@athena xghost]# docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' 2486ad81b53f
172.19.0.3
Agent Configuration:
<ossec_config>
<client>
<server>
<address>172.19.0.3</address>
<port>1514</port>
<protocol>tcp</protocol>
</server>
<config-profile>centos, centos6, centos6.10</config-profile>
<notify_time>10</notify_time>
<time-reconnect>60</time-reconnect>
<auto_restart>yes</auto_restart>
<crypto_method>aes</crypto_method>
</client>
</ossec_config>
However, the agent is not connecting despite all configurations seeming correct. I’ve checked the server IP and port, and I can confirm they are properly configured. I would appreciate any insights or assistance on how to resolve this issue. And i will attached wazuh-dashboard image
Thank you for your time and support.
I hope you're doing well.
I am currently facing an issue where I am able to create a Wazuh agent, but it is not connecting to the Wazuh server. I am running Wazuh Manager, Wazuh Indexer, Wazuh Dashboard, and the agent all within Docker containers on my Arch Linux-based Athena OS.
I have checked the configuration and the Wazuh manager's IP address is set correctly in the agent configuration file (172.19.0.3), and the ports are open as shown below:

Agent Configuration:
However, the agent is not connecting despite all configurations seeming correct. I’ve checked the server IP and port, and I can confirm they are properly configured. I would appreciate any insights or assistance on how to resolve this issue.
Thank you for your time and support.

If the issue persists, please share the error/warning logs from both the Wazuh agent and manager so we can investigate further. Let us know if you need additional help!