Removing the MySQL Enterprise Service Manager
To remove the MySQL Enterprise Service Manager, find the
uninstall
file in the
/opt/mysql/enterprise/monitor
directory.
Execute this file by typing:
shell> ./uninstall
During the uninstall process you will be given the option of saving existing data and log files. Choose this option if you plan to reinstall the MySQL Enterprise Monitor.
If you are not saving existing data, after uninstalling the
MySQL Enterprise Service Manager you may remove the
/opt/mysql/enterprise/monitor
directory.
If you chose not to remove existing data and log files when
uninstalling the MySQL Enterprise Monitor do
not remove the
/opt/mysql/enterprise/monitor
directory;
doing so will delete these files.
On Red Hat Enterprise Linux 4 and Fedora Core 4, the uninstall script may not stop the Tomcat server. Do this manually if necessary. To do this see, Section 2.2.6, “Starting/Stopping the MySQL Enterprise Monitor Service on Unix and Mac OS X”.
There may be other Java processes running on your system. Be careful not to accidentally stop them.
On some Unix platforms, inluding HP-UX, you may have to manually
delete the uninstall
application and the
installation directory after you have execute the uninstall
process.
Prior to removal of the Monitor Agent Service you should stop any
agents. Do this by changing to the init.d
directory and issuing the command, ./mysql-monitor-agent
stop.
You will find the uninstall
file in the
/opt/mysql/enterprise/agent
directory.
Execute this file by navigating to this directory and typing:
shell> ./uninstall
After uninstalling the Monitor Agent you may remove the
/opt/mysql/enterprise/agent
directory.
Removing the Monitor Agent in this fashion will remove the default service, and all the configuration files for different instances.
If you are running more than one agent on the same machine and wish to remove only one of the agents, do not run the uninstall program. To remove a single agent and leave other agents intact follow these steps:
Stop the agent
Confirm the location of the log files
Remove the agent as a service
Remove/Archive associated files
It is best to stop the agent before removing it; for instructions on stopping an agent see Section 2.3.5.3, “Starting/Stopping the Agent on Unix”.
You can confirm the location of the agent log files by checking
the ini
file. For more information on this
topic see Section 2.3.6.1, “MySQL Enterprise Monitor Agent (mysql-monitor-agent.ini
)
Configuration”.
You may then remove the agent as a daemon by removing its entry in
the init.d
directory. You should also remove
or archive any log or configuration files associated with this
agent.
If you have installed any additional agents, remove them in the same fashion.