If you run an SSH server on the machine that hosts the
MySQL Enterprise Service Manager and an SSH client on the machine that hosts the
agent, you can create an SSH tunnel so that the agent can bypass
your firewall. First, you need to make an adjustment to the
hostname
value specified in the
[mysql-proxy]
section of the
.ini
file. (For more information about the
contents and location of the .ini
file see
Section 2.3.6.1, “MySQL Enterprise Monitor Agent (mysql-monitor-agent.ini
)
Configuration”.) Stop the
agent and change the hostname
value as shown
in the following:
hostname = http://agent_name:password
@localhost:18080
/heartbeat
Replace the agent_name
and
password
with suitable values. Likewise
replace port 18080
if you are not running the
dashboard on this port. Use localhost
for the
host name, since the agent is connecting through an SSH tunnel.
Next, execute the following command on the machine where the agent is running:
shell> ssh -L 18080:Dashboard_Host:18080
-l user_name
-N Dashboard_Host
When prompted, enter the password for
user_name
.
If you are not running the MySQL Enterprise Service Manager on port
18080
, substitute the appropriate port
number. Likewise, replace Dashboard_Host
with
the correct value. user_name
represents a
valid operating system user on the machine that hosts the
MySQL Enterprise Service Manager.
Be sure to restart the agent so that the new value for the
hostname
takes effect. For instructions on
restarting the agent see:
Under Windows see, Section 2.3.5.1, “Starting/Stopping the Agent on Windows”.
Under Unix see, Section 2.3.5.3, “Starting/Stopping the Agent on Unix”.
Under Mac OS X see, Section 2.3.5.2, “Starting/Stopping the Agent on Mac OS X”.