[+/-]
This section describes the best practices to employ when changing your MySQL Enterprise Monitor installation.
When upgrading a monitored MySQL server first stop the agent. To stop the agent see:
Stop the MySQL server and perform the upgrade. For instructions on stopping and restarting the MySQL service under Windows see Section 15.3.2.5, “Starting/Stopping the MySQL Enterprise Monitor Service on Windows”.
To stop and restart the MySQL daemon under Unix and Mac OS X, see, Section 15.3.2.6, “Starting/Stopping the MySQL Enterprise Monitor Service on Unix and Mac OS X”.
Once the service/daemon is stopped you may upgrade your server. For instructions on upgrading your MySQL server see the reference manual pertaining to your server version. When the upgrade is complete restart the MySQL server.
The agent's log file will show that the server was down.
You need not reinstall the MySQL Enterprise Monitor Agent in order to change the MySQL server that it monitors. It is possible to adapt an existing agent so that it monitors a different server.
To do this you must stop the monitor agent and then remove the server that it is monitoring. To stop the agent see:
For instructions on removing a server see, Section 15.5.3.3, “Removing a Server From the Dashboard”.
Once the agent is stopped and the server is removed from the
Dashboard, changes may be made to the
mysql-monitor-agent.ini
, or the
agent-instance.ini
file within the agent
instances
instances directory. You can find
the location of the directory by examining the content of the
mysql-monitor-agent.ini
and checking the
value of the mysqld-instance-dir
parameter.
If you want to make changes to the monitored MySQL server, edit
the agent-instance.ini
file. Change the
user
, password
,
hostname
, and port
values
if required. For more information, see
Section 15.3.3.6.2, “MySQL Server (agent-instance.ini
) Configuration”.
To change other settings, such as enabling proxy support
(required for Query Analyzer), the management host, or the port
number used by the agent, modify the
mysql-monitor-agent.ini
file. For more
information, see
Section 15.3.3.6.1, “MySQL Enterprise Monitor Agent (mysql-monitor-agent.ini
)
Configuration”.
To restart the agent see:
If you are adapting an existing agent to monitor a remote server make sure that the agent has the credentials for remote access and that the port on the remote MySQL server instance is open. For more information, see Section 15.3.3.6.4, “Configuring an Agent to Monitor a Remote MySQL Server”.
If you experience difficulties starting the agent, check Section 15.3.3.7, “Troubleshooting the Agent”.
Log in to the Dashboard and you should find your new server in
the All Servers
group.
In some situations you may need to bring down a monitored server. When this is necessary, it is good practice to stop the agent first—doing so will avoid generating a “Server is unreachable” event.
For instance, suppose you need to stop the server in order to do a backup. The steps to follow are:
Stop the agent
Stop the service/daemon
Perform the backup
Restart the service/daemon
Restart the agent
To stop or start the agent see:
To stop the MySQL service/daemon see the MySQL reference manual for your server version. You can find the manual online at http://dev.mysql.com/doc.
Follow these steps and there will be no “noise” associated with backing up your server. In contrast, if you leave the agent running while bringing down the server, you will generate a “Server is unreachable” event.
As an alternative to stopping the agent, you can change the logic associated with a rule. For instance, you could alter the threshold of the rule “Server is unreachable”:
%server.reachable% == THRESHOLD
to:
%server.reachable% == THRESHOLD && CURTIME() NOT BETWEEN '22:00:00' AND '23:00:00'
This would effectively blackout the rule between 10 and 11 pm, during which time you could perform a backup.
For more information about editing rules see Section 15.7.3, “Editing Built-in Rules”. To blackout all events associated with a specific server or group of servers see Section 15.7.7, “Advisor Blackout Periods”.
User Comments
Add your own comment.