We have just discovered a bug causing successive registrations with the "-I any" option overwrite each other.
As a workaround, to have your laptops correctly registered, you should follow the further steps:
<use_source_ip>no</use_source_ip>
is set to no in
/var/ossec/etc/ossec.confany
option: /var/ossec/bin/agent-auth -m <manager IP>
.
If you are registering machines that have exactly the same hostname you
have to manually specify an agent name using the -A option: /var/ossec/bin/agent-auth -m <manager IP> -A <hostname>
About the bug, as soon as our workflow allows us to do so, we're going to fix it. You can track the progress in this issue.
I hope it helps. Please, let me know how it goes.
Best regards, JP Sáez