Hi,
I just replicated it on a Debian LXC machine, and I have seen the following:
When launching a new LXC machine it does not come with "sudo" installed by default therefore when using the command you told me to download and install the agent "wget ..."
we get the error "bash: sudo: command not found" and when entering the file /var/ossec/etc/ossec.conf we see how the ip of the manager is still as "MANAGER_IP".
To install "sudo" we can do it using these commands:
apt-get update
apt-get install sudo
I have also had an error for not having installed the lsb-release dependency that is installed by apt-get install lsb-release.
Having sudo installed and without agent or with the agent completely uninstalled, we execute the command you told me "wget ..." and everything works correctly.
Could you confirm me if your case was due to this?
Thanks!