The mysql-monitor-agent.ini file contains the
base configuration information for the MySQL Enterprise Agent. The file
sets the core information about the supported functionality for
the entire agent. Its format is shown in the following example:
# WARNING - The UUID defined below must be unique for each agent. # # To use this INI file as a template for configuring additional # agents, do not simply copy and start a new agent without first # modifying the UUID and adjusting other parameters as necessary. # # WARNING - If you are upgrading from a previous 1.x release, please # note that we have changed the contents of the agent INI file and # split the contents across two files: # # <installdir>/etc/mysql-monitor-agent.ini - this file # <installdir>/etc/instances/mysql/agent-instance.ini - new file # # Refer to the documentation for more detailed information and # instructions. # # Version: 2.3.9.2137 [mysql-proxy] # Common Parameters plugins = proxy,agent,aggr keepalive = true log-file = mysql-monitor-agent.log pid-file = /opt/mysql/enterprise/agent/mysql-monitor-agent.pid # Agent Parameters agent-mgmt-hostname = http://localhost:18080/heartbeat agent-mgmt-username = agent agent-mgmt-password = foo agent-item-files = share/mysql-monitor-agent/items/quan.lua, share/mysql-monitor-agent/items/items-mysql-monitor.xml, share/mysql-monitor-agent/items/items-mysql-cluster.xml, share/mysql-monitor-agent/items/custom.xml agent-uuid = 68b4892c-1310-4f07-8924-3a8b3c0e850b mysqld-instance-dir = etc/instances # Aggregator Parameters aggr-address = :14000 aggr-lua-script = lib/mysql-aggregator/lua/aggr.lua aggr-mem-baseurl = http://localhost:18080/v2/rest # Proxy Parameters proxy-address = :6446 proxy-backend-addresses = 127.0.0.1:3306 proxy-lua-script = lib/mysql-monitor-agent/lua/quan.lua
Do not copy the agent configuration information from one machine
to another without changing the agent-uuid.
Each agent instance must have a unique agent id.
The main configuration information must be located within the
[mysql-proxy] section of the configuration
file. The main configurable parameters within this file are:
The MySQL Enterprise Monitor configuration files use the
glib
file parser to parse settings that define file names.
This means that leading and trailing whitespace is stripped. The
following escape characters are allowed: \r,
\n, \t,
\s, \\, and
\.
The MySQL Enterprise Agent supports the following configurable options:
Table C.7. mysql-monitor-agent Help Options
| Format | Option File | Description |
|---|---|---|
| --help-admin | Show options for the admin-module | |
| --help-agent | Show agent options | |
| --help-all | Show all help options | |
| --help-monitor | Show monitor options | |
| --help-proxy | Show options for the proxy-module |
Table C.8. mysql-monitor-agent Admin Options
| Format | Option File | Description |
|---|---|---|
| --admin-address | admin-address | Defines the listening address and port for the admin module |
| --admin-lua-script | admin-lua-script | Script to execute by the admin module |
| --admin-password | admin-password | Password for authentication for admin module |
| --admin-username | admin-username | Username for authentication for admin module |
| --proxy-address | proxy-address | Listening address:port of the proxy server |
Table C.9. mysql-monitor-agent Agent Options
| Format | Option File | Description | Introduced |
|---|---|---|---|
| --agent-backlog-timeout | agent-backlog-timeout | Maximum time in seconds that the agent keeps data when it cannot communicate with the Service Manager | |
| --agent-collector-plugins | agent-collector-plugins | Load the specified collector plugins | |
| --agent-connect-timeout | agent-connect-timeout | The timeout for the agent to connect to the MySQL server | |
| --agent-DNS-cachetimeout | agent-DNS-cachetimeout | The timeout for cache operations | |
| --agent-force-uncorking | agent-force-uncorking | Forcibly turn off corking (randomization of data collection intervals) | |
| --agent-generate-uuid | agent-generate-uuid | Generate a UUID for use with the agent-uuid | |
| --agent-heartbeat-interval | agent-heartbeat-interval | The interval for generating heartbeat operations | |
| --agent-host-id | agent-host-id | The host ID for the agent | |
| --agent-host-id-commandline | agent-host-id-commandline | The command to use to generate the agent host id | |
| --agent-hostname | agent-hostname | Hostname of the agent host | |
| --agent-IP-version | agent-IP-version | IP version (4 or 6) to force | |
| --agent-item-files | agent-item-files | List of data items for additional collections | |
| --agent-master-uuid-discovery | agent-master-uuid-discovery | Disable the use of the master_uuid for topology discovery | |
| --agent-max-response-size | agent-max-response-size | Maximum response size for agent data | |
| --agent-mgmt-hostname | agent-mgmt-hostname | URL of the management server | |
| --agent-mgmt-password | agent-mgmt-password | Password for the management server | |
| --agent-mgmt-username | agent-mgmt-username | User name with the management server | |
| --agent-net-timeout | agent-net-timeout | The timeout for the agent for established connections to the MySQL server | |
| --agent-report-network-fs | agent-report-network-fs | Enable data collection for networked file systems | |
| --agent-report-offset | agent-report-offset | Set the second after the minute when the data is sent to the server | |
| --agent-run-os-tests | agent-run-os-tests | Run the operating system tests and shutdown | |
| --agent-ssh-keygen-attempts | agent-ssh-keygen-attempts | Number of attempts that the agent should retry, for a failed ssh-keygen | 2.3.10 |
| --agent-ssh-keygen-retry | agent-ssh-keygen-retry | Time interval (in seconds) between attempts for a failed ssh-keygen attempt | 2.3.10 |
| --agent-sync-attempts | agent-sync-attempts | Synchronize the attempts to connect at resync | |
| --agent-track-alloc | agent-track-alloc | Enable the tracking of the allocation sizes | |
| --agent-uuid | agent-uuid | UUID of this agent | |
| --mysqld-instance-dir | mysqld-instance-dir | Location of the MySQL instance configuration (mysql.cnf/mysql.ini) files |
Table C.10. mysql-monitor-agent Monitor Options
| Format | Option File | Description |
|---|---|---|
| --monitor-interval | monitor-interval | Interval for executing queries against the backend |
| --monitor-lua-script | monitor-lua-script | Script filename for the monitor |
| --monitor-password | monitor-password | Set the password for the monitored MySQL Server |
| --monitor-username | monitor-username | Set the username for the monitored MySQL Server |
Table C.11. mysql-monitor-agent Proxy Options
| Format | Option File | Description | Introduced |
|---|---|---|---|
| --no-proxy | no-proxy | Don't start the proxy module | |
| --proxy-backend-addresses | proxy-backend-addresses | Address:port of the remote MySQL server | |
| --proxy-connect-timeout | proxy-connect-timeout | Defines the default timeout, for proxy connection operations | 2.3.10 |
| --proxy-fix-bug-25371 | proxy-fix-bug-25371 | Enable the fix for Bug #25371 (for mysqld > 2.0.0.12) for older libmysql versions | |
| --proxy-lua-script | proxy-lua-script | Filename for Lua script for proxy operations | |
| --proxy-pool-no-change-user | proxy-pool-no-change-user | Don't use the protocol CHANGE_USER to reset the connection when coming from the connection pool | |
| --proxy-read-only-backend-addresses | proxy-read-only-backend-addresses | Address:port of the remote MySQL server (read-only) | |
| --proxy-read-timeout | proxy-read-timeout | Defines the default timeout, for proxy read operations | 2.3.10 |
| --proxy-skip-profiling | proxy-skip-profiling | Disabled profiling of queries | |
| --proxy-write-timeout | proxy-write-timeout | Defines the default timeout, for proxy write operations | 2.3.10 |
Table C.12. mysql-monitor-agent Aggregator Options
| Format | Option File | Description | Introduced |
|---|---|---|---|
| --aggr-address | aggr-address | Listening address:port combination | 2.3.0 |
| --aggr-flush-interval | aggr-flush-interval | The interval in seconds between flushes of query data to the MySQL Enterprise Service Manager | 2.3.0 |
| --aggr-lua-script | aggr-lua-script | Path to the Lua script | 2.3.0 |
| --aggr-max-request-body-size | aggr-max-request-body-size | Limits the maximum size of requests sent to the Aggregator, to avoid potential out-of-memory errors | 2.3.8 |
| --aggr-mem-baseurl | aggr-mem-baseurl | Base URL of the server | 2.3.0 |
| --aggr-ssl-address | aggr-ssl-address | Listening port:address combination for SSL connections | 2.3.0 |
| --aggr-ssl-ca-file | aggr-ssl-ca-file | CA certificate file | 2.3.0 |
| --aggr-ssl-cert-file | aggr-ssl-cert-file | Server certificate (PEM) | 2.3.0 |
| --aggr-ssl-ciphers | aggr-ssl-ciphers | Supported ciphers for SSL | 2.3.0 |
| --aggr-test-mode | aggr-test-mode | Start the aggregator in test mode | 2.3.0 |
Table C.13. mysql-monitor-agent Application Options
| Format | Option File | Description |
|---|---|---|
| --basedir | basedir | Specify the base directory to prepend to paths in the config |
| --daemon | daemon | Start in daemon-mode |
| --defaults-file | defaults-file | Specify the configuration file |
| --keepalive | keepalive | Try to restart the proxy if a crash occurs |
| --log-backtrace-on-crash | log-backtrace-on-crash | Try to invoke the debug and generate a backtrace on crash |
| --log-file | log-file | Specify the file for logging error messages |
| --log-level | log-level | Logging level |
| --log-use-syslog | log-use-syslog | Log errors to syslog |
| --lua-cpath | lua-cpath | Set the LUA_CPATH |
| --lua-path | lua-path | Set the LUA_PATH |
| --max-open-files | max-open-files | Specify the maximum number of open files to support |
| --pid-file | pid-file | PID file to store the process ID (when in daemon mode) |
| --plugin-dir | plugin-dir | Path to the plugin files |
| --plugins | plugins | List of plugins to load |
| --user | user | Specify the user to use when running mysql-monitor-agent |
| --verbose-shutdown | verbose-shutdown | Report shutdown in the logs regardless of log level |
| --version | version | Show the version information |
| Command-Line Format | --help |
||
-? |
|||
Show available help options.
| Command-Line Format | --help-all |
||
Show all help options.
| Command-Line Format | --help-admin |
||
Show options for the admin-module.
| Command-Line Format | --help-proxy |
||
Show options for the proxy-module.
| Command-Line Format | --help-monitor |
||
Show options for the monitor module.
| Command-Line Format | --help-agent |
||
Show options for the agent module.
| Command-Line Format | --admin-address |
||
| Option-File Format | admin-address |
||
| Permitted Values | |||
| Type | string |
||
| Default | :4041 |
||
Specify the host name (or IP address) and port for the
administration port. The default is
localhost:4041.
| Command-Line Format | --admin-lua-script |
||
| Option-File Format | admin-lua-script |
||
| Permitted Values | |||
| Type | file name |
||
| Default | |
||
Specify the script to use for the administration module for the proxy.
| Command-Line Format | --admin-password |
||
| Option-File Format | admin-password |
||
| Permitted Values | |||
| Type | string |
||
| Default | |
||
Define the password to use to authenticate users wanting to connect to the administration module of mysql-monitor-agent. The administration module uses the MySQL protocol to request a username and password for connections.
| Command-Line Format | --admin-username |
||
| Option-File Format | admin-username |
||
| Permitted Values | |||
| Type | string |
||
| Default | root |
||
Define the username to use to authenticate users wanting to
connect to the administration module of
mysql-monitor-agent. The default username
is root. The administration module uses the
MySQL protocol to request a username and password for
connections.
--agent-collector-plugins=user
| Command-Line Format | --agent-collector-plugins |
||
| Option-File Format | agent-collector-plugins |
||
| Permitted Values | |||
| Type | numeric |
||
| Default | collect_lua |
||
A comma-separated list of the plugins to be used and loaded by the agent and used to provide collector items.
When monitoring servers you must have the
agent plugin configured. To support Query
Analyzer, you must also have the proxy
module enabled. Plugins should be specified as a comma
separated list of plugin names.
If you enabled Query Analyzer during installation of the
agent, the default value is proxy,agent. If
you disabled Query Analyzer during installation, the default
value is agent.
--agent-connect-timeout=seconds
| Command-Line Format | --agent-connect-timeout |
||
| Option-File Format | agent-connect-timeout |
||
| Permitted Values | |||
| Type | numeric |
||
| Default | 10 |
||
The timeout for the agent to connect to the MySQL server before a failure is reported.
--agent-DNS-cachetimeout=seconds
| Command-Line Format | --agent-DNS-cachetimeout |
||
| Option-File Format | agent-DNS-cachetimeout |
||
| Permitted Values | |||
| Type | numeric |
||
| Default | 0 |
||
| Valid Values |
-1 (Never timeout) |
||
0 (Don't cache) | |||
The timeout for caching the IP address of a given DNS name. By
default, the operating system caching of the address is used
and no caching in the agent is performed at all. If you
specify -1, caching is enabled and never times out. Any other
positive value specifies the timeout value. If you specify
this option in the
mysql-monitor-agent.ini configuration
file, the value is preserved during an upgrade install.
| Command-Line Format | --agent-net-timeout |
||
| Option-File Format | agent-net-timeout |
||
| Permitted Values | |||
| Type | numeric |
||
| Default | 10 |
||
The timeout for the agent to get a response from a MySQL server to which it is already connected before the failure is reported.
| Command-Line Format | --agent-report-network-fs |
||
| Option-File Format | agent-report-network-fs |
||
| Permitted Values | |||
| Type | boolean |
||
| Default | off |
||
Enables data collection for network file systems. The reporting of network file system information is disabled because the latency in determining and reporting the information can delay the collection and reporting of other information. You must manually enable collection if you need or use advisor and graphs that perform custom data collection on networked file systems.
| Command-Line Format | --agent-force-uncorking |
||
| Option-File Format | agent-force-uncorking |
||
Forcibly turn off the corking of responses sent to MySQL Enterprise Service Manager. The corking mechanism tries to randomize the reporting interval of data sent up to the server to prevent flooding the server with information.
You can combine this option with the
---agent-report-offset to specify the offset
when data is reported to the server. For more information, see
agent-report-offset.
The frequency of collecting the data is not modified by this setting.
| Command-Line Format | --agent-generate-uuid |
||
| Option-File Format | agent-generate-uuid |
||
Regenerates a UUID for the agent. You can use this to generate a new UUID if you have copied configuration information for an agent from one machine to another. To use:
shell> /opt/mysql/enterprise/agent/bin/mysql-monitor-agent --agent-generate-uuid ee9296d7-f7cd-4fee-8b26-ead884ebf398 2009-03-05 11:49:37: (critical) shutting down normally
For more information, see Section 5.3.6, “Monitoring Multiple MySQL Servers”.
| Command-Line Format | --agent-heartbeat-interval |
||
| Option-File Format | agent-heartbeat-interval |
||
| Permitted Values | |||
| Type | numeric |
||
| Default | 3 |
||
Specify the heartbeat interval. The agent sends heartbeat messages to MySQL Enterprise Service Manager to indicate that it is alive and still running and monitoring servers. The MySQL Enterprise Service Manager uses this information to help identify when an agent is available or not.
| Command-Line Format | --agent-host-id |
||
| Option-File Format | agent-host-id |
||
Define the agent host ID. The host ID should be a unique identifier for the host on which the agent is running, and is different to the agent UUID. You can override the host ID for use within HA environments where you have two identical agent configurations, one on a live server, and one on a backup server to be brought into use if the primary server fails. The host ID is used to identify the host by the server, and during failover you want the host ID to remain constant as you monitor either the original or failover (replacement) server.
| Command-Line Format | --agent-IP-version |
||
| Option-File Format | agent-IP-version |
||
| Permitted Values | |||
| Type | numeric |
||
| Default | any |
||
| Valid Values | 4 |
||
6 | |||
Specify the IP version to be used and supported by
MySQL Enterprise Agent. By default, the agent supports both IPv4 and
IPv6, or you can specify the version by specifying
4 or 6. If you specify
this option in the
mysql-monitor-agent.ini configuration
file, the value is preserved during an upgrade install.
| Command-Line Format | --agent-host-id-commandline |
||
| Option-File Format | agent-host-id-commandline |
||
Specify the command line to generate the host ID. By default, the host ID is generated by using a variety of methods configured for a specific platform, including using SSH keys and embedded host ID information. You can replace this with an alternative command-line
| Command-Line Format | --agent-hostname |
||
| Option-File Format | agent-hostname |
||
Override the automatically determined hostname. You can use this to specify an alternate hostname for the agent. This can be useful if your host has multiple hostnames and you want the machine identified by a specific hostname.
Setting the hostname using the Manage Servers tab within MySQL Enterprise Dashboard overrides this setting.
| Command-Line Format | --agent-item-files |
||
| Option-File Format | agent-item-files |
||
A comma-separated list of the item files used to load data items that are then collected and sent to MySQL Enterprise Service Manager. For more information, see Section 4.1.10, “Creating a Custom Data Collection Item”.
The default value includes
share/mysql-monitor-agent/items/quan.lua
(which provides Query Analyzer data) and
share/mysql-monitor-agent/items/items-mysql-monitor.xml
(which provides the core agent monitoring data).
| Command-Line Format | --agent-max-response-size |
||
| Option-File Format | agent-max-response-size |
||
| Permitted Values | |||
| Type | numeric |
||
| Default | 65536 |
||
Specify the maximum size of the response packet sent to MySQL Enterprise Service Manager.
| Version Introduced | 2.3.10 | ||
| Command-Line Format | --agent-ssh-keygen-attempts |
||
| Option-File Format | agent-ssh-keygen-attempts |
||
| Permitted Values | |||
| Type | numeric |
||
| Default | 10 |
||
Number of attempts that the agent should retry, for a failed ssh-keygen.
| Version Introduced | 2.3.10 | ||
| Command-Line Format | --agent-ssh-keygen-retry |
||
| Option-File Format | agent-ssh-keygen-retry |
||
| Permitted Values | |||
| Type | numeric |
||
| Default | 3 |
||
Time interval (in seconds) between attempts for a failed ssh-keygen attempt.
| Command-Line Format | --agent-master-uuid-discovery |
||
| Option-File Format | agent-master-uuid-discovery |
||
| Permitted Values | |||
| Type | boolean |
||
| Default | true |
||
By default, the MySQL Enterprise Agent uses the
UUID of the replication
master to aid in
identifying the replication
topology. Setting this
option to false prevents the agent from accessing the
master.info and using the UUID obtained
from the replication master. Instead, the hostname and port
information is used to determine the topology and match the
instance and master information.
| Command-Line Format | --agent-mgmt-hostname |
||
| Option-File Format | agent-mgmt-hostname |
||
Set the URL of the MySQL Enterprise Service Manager where collected data is
sent. The URL should include the username and password for the
agents, for example:
http://agent:password@memserver:18080/heartbeat.
If you have the http_proxy environment
variable configured within your environment, add the value
of agent-mgmt-hostname to the
no_proxy variable to ensure that data is
correctly transmitted to MySQL Enterprise Service Manager and not redirected
through the configured proxy address.
| Command-Line Format | --agent-mgmt-username |
||
| Option-File Format | agent-mgmt-username |
||
| Permitted Values | |||
| Type | string |
||
The username to be used when communicating with MySQL Enterprise Service Manager.
| Command-Line Format | --agent-mgmt-password |
||
| Option-File Format | agent-mgmt-password |
||
| Permitted Values | |||
| Type | string |
||
The password to be used when communicating with MySQL Enterprise Service Manager.
| Command-Line Format | --agent-report-offset |
||
| Option-File Format | agent-report-offset |
||
| Permitted Values | |||
| Type | numeric |
||
| Default | random |
||
The offset, in seconds, past the minute when data is sent up to MySQL Enterprise Service Manager. You can use this to harmonize or synchronize agent report across multiple machines, which can improve performance.
For example, if you set
--agent-report-offset=15, then data is
reported at 15 seconds past each minute. For example, at
12:00:15, 12:01:15, and so on.
| Command-Line Format | --agent-run-os-tests |
||
| Option-File Format | agent-run-os-tests |
||
Runs the internal operating system tests, and then exits. Using this option generates a large body of information about the various operating system information that can be collected about the host. You can use this to determine whether the agent is collecting the right amount, quantity and quality of information to the server.
The following truncated example shows the format of the output:
2010-01-22 16:15:45: (critical) MySQL Monitor Agent 2.2.1.1138 started. sigar-test-all.c.128 (): pid = 1353 sigar-test-all.c.110 (): mem.ram = 6080, mem.total = 6374154240, mem.used = 3356090368, mem.free = 3018063872, mem.actual_free = 3018063872, mem.actual_used = 3356090368 sigar-test-all.c.143 (): swap.total = 28523896832, swap.used = 710623232, swap.free = 27813273600 sigar-test-all.c.169 (): cpu.user = 24544920, cpu.sys = 136764840, cpu.nice = 0, cpu.idle = 1234759920, cpu.wait = 0, cpu.total = 349015500 sigar-test-all.c.194 (): [0] cpu.user = 8516770, cpu.sys = 56838970, cpu.nice = 0, cpu.idle = 283667220, cpu.wait = 0, cpu.total = 349022960 [1] cpu.user = 6130420, cpu.sys = 12671090, cpu.nice = 0, ...
| Command-Line Format | --agent-sync-attempts |
||
| Option-File Format | agent-sync-attempts |
||
Attempt to synchronize with the server during the resynchronization.
| Command-Line Format | --agent-track-alloc |
||
| Option-File Format | agent-track-alloc |
||
Track the memory allocation in the various modules of the agent to help monitor the memory usage.
| Command-Line Format | --agent-uuid |
||
| Option-File Format | agent-uuid |
||
| Permitted Values | |||
| Type | string |
||
Specify the agent UUID. A UUID is automatically generated for
each agent during installation, with the UUID automatically
added to the configuration. You can generate a new UUID using
the agent-generate-uuid command line option.
If you are setting up multiple hosts and copying the
configuration between hosts, make sure that the
agent-uuid is unique. You can have the
agent create a new UUID by leaving this configuration property
blank.
| Command-Line Format | --basedir |
||
| Option-File Format | basedir |
||
| Permitted Values | |||
| Type | file name |
||
Specify a base directory that is prepended to all other filename configuration options. Use an absolute (not relative) directory name, otherwise mysql-monitor-agent generates an error during startup.
| Command-Line Format | --defaults-file |
||
| Option-File Format | defaults-file |
||
Specify a file to use as the file with configuration information. If not specified, configuration options are only taken from the command line.
| Command-Line Format | --event-threads |
||
| Option-File Format | event-threads |
||
| Permitted Values | |||
| Type | numeric |
||
| Default | 1 |
||
Specify the number of event threads reserved to handle incoming requests.
| Command-Line Format | --keepalive |
||
| Option-File Format | keepalive |
||
Creates an angel process surrounding the main mysql-monitor-agent that attempts to restart the true mysql-monitor-agent process in the event a crash or other failure.
If the agent stops unexpectedly, the angel revives the agent.
An expected shutdown is:
MySQL Enterprise Agent terminates normally.
Shutdown with SIGTERM.
Startup errors.
If the angel receives one of SIGHIP,
SIGTERM, or SIGINT
signals, the signal is forwarded to the agent to initiate
shutdown.
| Command-Line Format | --agent-backlog-timeout |
||
| Option-File Format | agent-backlog-timeout |
||
| Permitted Values | |||
| Type | numeric |
||
The time in seconds that data is kept by the agent if the agent is unable to communicate with MySQL Enterprise Service Manager. Once the agent reconnects, the data is sent up to MySQL Enterprise Service Manager. Data older than the specified value is discarded. The default value is 600 seconds.
| Version Introduced | 2.3.0 | ||
| Command-Line Format | --aggr-address |
||
| Option-File Format | aggr-address |
||
| Permitted Values | |||
| Type | string |
||
| Default | *:14000 |
||
Specify the listening hostname, port, or both for the MySQL Enterprise Agent Aggregator.
| Command-Line Format | --log-backtrace-on-crash |
||
| Option-File Format | log-backtrace-on-crash |
||
Logs the backtrace to the error log and tries to initialize the debugger in the event of a failure.
| Version Introduced | 2.3.0 | ||
| Command-Line Format | --aggr-lua-script |
||
| Option-File Format | aggr-lua-script |
||
| Permitted Values | |||
| Type | string |
||
Specify the script to be used for MySQL Enterprise Agent Aggregator operations.
--aggr-max-request-body-size=bytes
| Version Introduced | 2.3.8 | ||
| Command-Line Format | --aggr-max-request-body-size |
||
| Option-File Format | aggr-max-request-body-size |
||
| Permitted Values | |||
| Type | numeric |
||
| Default | 1048576 |
||
Limits the maximum size of requests sent to the Aggregator, to avoid potential out-of-memory errors on the system running the Agent (and its Aggregator component).
| Version Introduced | 2.3.0 | ||
| Command-Line Format | --aggr-mem-baseurl |
||
| Option-File Format | aggr-mem-baseurl |
||
| Permitted Values | |||
| Type | string |
||
Base URL of the MySQL Enterprise Service Manager to be used when sending aggregated queries collected from client plugins.
| Version Introduced | 2.3.0 | ||
| Command-Line Format | --aggr-ssl-address |
||
| Option-File Format | aggr-ssl-address |
||
| Permitted Values | |||
| Type | string |
||
| Default | *:14001 |
||
The listening hostname, port, or both to be used when listening for SSL connections.
| Version Introduced | 2.3.0 | ||
| Command-Line Format | --aggr-ssl-ca-file |
||
| Option-File Format | aggr-ssl-ca-file |
||
| Permitted Values | |||
| Type | string |
||
The CA chain file to be used for SSL communication.
| Version Introduced | 2.3.0 | ||
| Command-Line Format | --aggr-ssl-cert-file |
||
| Option-File Format | aggr-ssl-cert-file |
||
| Permitted Values | |||
| Type | string |
||
The server certificate for the MySQL Enterprise Agent Aggregator. This should be in the form of a PEM file, consisting of a combination of the private key and the signing certificate.
| Version Introduced | 2.3.0 | ||
| Command-Line Format | --aggr-ssl-ciphers |
||
| Option-File Format | aggr-ssl-ciphers |
||
| Permitted Values | |||
| Type | string |
||
List of the ciphers to be used for secure communication using SSL.
| Version Introduced | 2.3.0 | ||
| Command-Line Format | --aggr-test-mode |
||
| Option-File Format | aggr-test-mode |
||
| Permitted Values | |||
| Type | string |
||
Start MySQL Enterprise Agent Aggregator in test mode.
| Command-Line Format | --log-file |
||
| Option-File Format | log-file |
||
| Permitted Values | |||
| Type | file name |
||
Specify the name of a file to be used to record log information. If you do not specify a full path name, then the log file location is considered to be relative to the installation directory of the agent.
| Command-Line Format | --log-level |
||
| Option-File Format | log-level |
||
| Permitted Values | |||
| Type | enumeration |
||
| Default | critical |
||
| Valid Values |
error (Show error messages) |
||
warning (Show only warning messages) | |||
info (Show informational messages) | |||
message (Show information about agent and basic processing) | |||
critical (Show critical messages highlighting agent problems) | |||
debug (Show detailed information, including info provided to server) | |||
The log level used when outputting error messages. Messages of
that level (or lower) are output. For example,
message also outputs
info, warning, and
error messages.
Be careful when setting the log-level to
debug. Doing this rapidly increases the
size of your mysql-monitor-agent.log
file. To avoid disk space problems, put the log files on a
different drive from your MySQL server and the
MySQL Enterprise Dashboard.
It is strongly recommended that you use a
log-level of critical
or error in a production server. Use the
higher-levels to provide more detailed information only for
debugging problems with your agent.
Under Windows, if you restart the agent from the command
line after setting the log-level to
debug, extensive debug information is
displayed to the console as well as to the log file.
| Command-Line Format | --log-use-syslog |
||
| Option-File Format | log-use-syslog |
||
Causes errors to be sent to the syslog (Unix/Linux only).
| Command-Line Format | --lua-cpath |
||
| Option-File Format | lua-cpath |
||
| Permitted Values | |||
| Type | file name |
||
Specify the LUA_CPATH to be used when
loading compiled modules or libraries for Lua scripts.
| Command-Line Format | --lua-path |
||
| Option-File Format | lua-path |
||
| Permitted Values | |||
| Type | file name |
||
Specify the LUA_CPATH to be used when
loading modules for Lua.
| Command-Line Format | --max-open-files |
||
| Option-File Format | max-open-files |
||
| Permitted Values | |||
| Type | numeric |
||
The maximum number of open files and sockets supported by the mysql-monitor-agent process. Increase the value if required to run particular scripts.
| Command-Line Format | --monitor-interval |
||
| Option-File Format | monitor-interval |
||
| Permitted Values | |||
| Type | numeric |
||
| Default | 1 |
||
| Min Value | 1 |
||
Execute queries against the backends at this interval. The default is 1.
| Command-Line Format | --monitor-lua-script |
||
| Option-File Format | monitor-lua-script |
||
| Permitted Values | |||
| Type | string |
||
Filename of the Lua script to use for the monitor module.
| Command-Line Format | --monitor-password |
||
| Option-File Format | monitor-password |
||
| Permitted Values | |||
| Type | string |
||
The password for the monitoring user account.
| Command-Line Format | --monitor-username |
||
| Option-File Format | monitor-username |
||
| Permitted Values | |||
| Type | string |
||
| Default | monitor |
||
The username for the monitoring user account.
| Command-Line Format | --mysqld-instance-dir |
||
| Option-File Format | mysqld-instance-dir |
||
| Permitted Values | |||
| Type | string |
||
The path to the configuration files for the MySQL instance.
| Command-Line Format | --agent-IP-version |
||
| Option-File Format | agent-IP-version |
||
| Permitted Values | |||
| Type | numeric |
||
| Default | any |
||
| Valid Values | 4 |
||
6 | |||
Explicitly sets the IP version to be used for addressing. By
default, the agent uses either version. Set the value by
specifying 4 (for IPv4) or
6 (for IPv6).
| Version Introduced | 2.3.0 | ||
| Command-Line Format | --aggr-flush-interval |
||
| Option-File Format | aggr-flush-interval |
||
| Permitted Values | |||
| Type | numeric |
||
| Default | 60 |
||
The interval at which queries are flushed to the MySQL Enterprise Service Manager. The default value is 60.
| Command-Line Format | --no-proxy |
||
| Option-File Format | no-proxy |
||
Disable the proxy module.
| Command-Line Format | --plugin-dir |
||
| Option-File Format | plugin-dir |
||
| Permitted Values | |||
| Type | file name |
||
The directory to use when loading plugins for mysql-monitor-agent.
| Command-Line Format | --plugins |
||
| Option-File Format | plugins |
||
| Permitted Values | |||
| Type | string |
||
A comma-separated list of the plugins to be loaded.
| Command-Line Format | --proxy-address |
||
-P |
|||
| Option-File Format | proxy-address |
||
| Permitted Values | |||
| Type | string |
||
| Default | :6446 |
||
The listening host name (or IP address) and port of the proxy
service. The default is :6446 (all IPs on
port 6446). The setting is used when employing Query Analysis
as the address/port that you must configure your application
to use in place of your normal MySQL server. By default this
item is set during installation.
--proxy-read-only-backend-addresses=host:port
| Command-Line Format | --proxy-read-only-backend-addresses |
||
-r |
|||
| Option-File Format | proxy-read-only-backend-addresses |
||
| Permitted Values | |||
| Type | string |
||
The listening host name (or IP address) and port of the proxy server for read-only connections. The default is for this information not to be set.
--proxy-backend-addresses=host:port
| Command-Line Format | --proxy-backend-addresses |
||
-b |
|||
| Option-File Format | proxy-backend-addresses |
||
| Permitted Values | |||
| Type | string |
||
| Default | 127.0.0.1:3306 |
||
The host name (or IP address) and port of the MySQL server to connect to. You can specify multiple backend servers by supplying multiple options. Clients are connected to each backend server in round-robin fashion. For example, if you specify two servers A and B, the first client connection goes to server A; the second client connection goes to server B; and the third client connection goes to server A.
| Command-Line Format | --proxy-pool-no-change-user |
||
| Option-File Format | proxy-pool-no-change-user |
||
Disables the use of the MySQL protocol
CHANGE_USER when re-using a connection from
the pool of connections specified by the
backend-addresses list.
| Command-Line Format | --proxy-skip-profiling |
||
| Option-File Format | proxy-skip-profiling |
||
disables profiling of queries (tracking time statistics). The default is for tracking to be enabled.
| Command-Line Format | --proxy-fix-bug-25371 |
||
| Option-File Format | proxy-fix-bug-25371 |
||
Gets round an issue when connecting to a MySQL server later than 5.1.12 when using a MySQL client library of any earlier version.
| Command-Line Format | --proxy-lua-script |
||
-s |
|||
| Option-File Format | proxy-lua-script |
||
| Permitted Values | |||
| Type | file name |
||
Specify the Lua script file to be loaded. Note that the script
file is not physically loaded and parsed until a connection is
made. Also note that the specified Lua script is reloaded for
each connection; if the content of the Lua script changes
while mysql-monitor-agent is running, the
updated content is automatically used when a new connection is
made. To use Query Analyzer, set this parameter to
share/mysql-monitor-agent/quan.lua. This
is the default value.
--proxy-connect-timeout=seconds
| Version Introduced | 2.3.10 | ||
| Command-Line Format | --proxy-connect-timeout |
||
| Option-File Format | proxy-connect-timeout |
||
| Permitted Values | |||
| Type | numeric |
||
| Default | 2 |
||
The timeout value, for proxy connection operations.
| Version Introduced | 2.3.10 | ||
| Command-Line Format | --proxy-read-timeout |
||
| Option-File Format | proxy-read-timeout |
||
| Permitted Values | |||
| Type | numeric |
||
| Default | 28800 |
||
The timeout value, for proxy read operations.
| Version Introduced | 2.3.10 | ||
| Command-Line Format | --proxy-write-timeout |
||
| Option-File Format | proxy-write-timeout |
||
| Permitted Values | |||
| Type | numeric |
||
| Default | 28800 |
||
The timeout value, for proxy write operations.
| Command-Line Format | --daemon |
||
| Option-File Format | daemon |
||
Starts the proxy in daemon mode.
| Command-Line Format | --pid-file |
||
| Option-File Format | pid-file |
||
| Permitted Values | |||
| Type | file name |
||
Sets the name of the file that stores the process ID. This is
used by the script that shuts down the agent to identify the
process to be shut down. The default value is the
mysql-monitor-agent.pid file within the
base installation directory as created by the agent
| Command-Line Format | --user |
||
| Option-File Format | user |
||
| Permitted Values | |||
| Type | string |
||
Run mysql-monitor-agent as the specified
user.
| Command-Line Format | --version |
||
-V |
|||
| Option-File Format | version |
||
Show the version number.
| Command-Line Format | --verbose-shutdown |
||
| Option-File Format | verbose-shutdown |
||
| Permitted Values | |||
| Type | boolean |
||
| Default | off |
||
By default, agent shutdown messages are only logged if you
have set log-level to
message or higher. You can force shutdown
messages to be reported regardless of the log level using this
option.
