5.3.9 Generating a New UUID

For MySQL Enterprise Monitor to operate correctly, each agent must have a unique UUID in order to uniquely identify the agent with the MySQL Enterprise Service Manager.

Warning

Ensure that you do not reuse or duplicate a UUID. Running two agents with the same identification number yields unpredictable results

Go to the Agent installation directory and enter the following command:

shell> bin/mysql-proxy --plugins=agent --agent-generate-uuid

This should display a line similar to the following:

ee9296d7-f7cd-4fee-8b26-ead884ebf398

Paste this line into the [mysql-proxy] section of the mysql-monitor-agent.ini file for the agent-uuid parameter:

[mysql-proxy]
...
agent-uuid=ee9296d7-f7cd-4fee-8b26-ead884ebf398

In Windows, go to the command line and change to the MySQL Enterprise Monitor Agent installation directory and update the UUID by executing:

C:\> cd C:\Program Files\MySQL\Enterprise\Agent
C:\> mysql-monitor-agent -uf mysql-monitor-agent.ini 

This updates the configuration file directly with the new UUID.