Hi John,
Thank you for using Wazuh!
Information shown on the dashboard about agents are read from /var/ossec/queue/db/global.db database.
If you want to change the name displayed for any agent, you should change it in that database following this process:
-Stop wazuh-manager service
systemctl stop wazuh-manager-Open the global.db file using sqlite3
cd /var/ossec/queue/db/
sqlite3 global.db-Change the name of the agent in agent table
update agent set name='<new_name>' where id=<agent's_id>;-Restart the wazuh-manager service
systemctl start wazuh-managerAlternatively, you can use API insert endpoint to re-enroll your agents with new names and keeping the same ID. More information in the
documentation.
I hope this will help solving your issue.
Don't hesitate to ask if you have any other question.