I have a brand new install of Wazuh 3.1 and have created a total of five agents.
The first agent 001 has never been configured.
Agents 002, 003, 004 were configured in the command line of both the server and each respective agent.
I goofed on agent 003, used the incorrect IP for it. I deleted it via the command line interface.
I created agent 005, which has the same symbolic name as agent 003, but the correct IP.
This is what I see via the command line on the server:
Available agents:
ID: 001, Name: light, IP: 192.168.1.83
ID: 002, Name: test002, IP: 192.168.0.11
ID: 004, Name: test004, IP: 192.168.0.43
ID: 005, Name: test005, IP: 192.168.1.246
But via the Kibana interface the system still shows test003 with the incorrect IP. This is true even after a restart of the system.
So to reproduce - on the server using manage_agents, create an agent with an incorrect IP address, delete it, then create a second with the same name and corrected IP. The Kibana interface should show the original erroneous entry even after a restart.