Okay Juan, it's better now, thanks!
So, you've followed the very same steps to enroll the first and the second agent? In that case, there should be no problem UNLESS both agents have the same hostname.
Anyway, we can debug this by:
- Restarting the problematic agent: systemctl restart wazuh-agent.service (for Linux-based OS)
- Wait some minutes and see if it's enrolling or not.
- If not, check the logfile: cat <AGENT_INSTALL_DIR>/logs/ossec.log (by default, AGENT_INSTALL_DIR is /var/ossec).
Look for a warning/error message to troubleshoot this. You can as well post the log here (you should hide sensitive information though).