The MySQL Enterprise Monitor Agent supports the following configurable options:
Table 15.2. mysql-monitor-agent Help Options
Format | Config File | Description | Introduction | Deprecated | Removed |
---|---|---|---|---|---|
--help | Show help options | ||||
--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 15.3. mysql-monitor-agent Admin Options
Format | Config File | Description | Introduction | Deprecated | Removed |
---|---|---|---|---|---|
--admin-address | admin-address | Defines the listening address and poirt 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 15.4. mysql-monitor-agent Agent Options
Format | Config File | Description | Introduction | Deprecated | Removed |
---|---|---|---|---|---|
--agent-collector-plugins | agent-collector-plugins | Load the specified collector plugins | |||
--agent-force-uncorking | agent-force-uncorking | Forcibly turn off corking (randomization of data collection intervals) | 2.1.0 | ||
--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-item-files | agent-item-files | List of data items for additional collections | |||
--agent-max-response-size | agent-max-response-size | Maximum response size for agent data | 2.1.0 | ||
--agent-mgmt-hostname | agent-mgmt-hostname | URL of the management server | |||
--agent-run-os-tests | agent-run-os-tests | Run the operating system tests and shutdown | |||
--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 |
Table 15.5. mysql-monitor-agent Monitor Options
Format | Config File | Description | Introduction | Deprecated | Removed |
---|---|---|---|---|---|
--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 15.6. mysql-monitor-agent Proxy Options
Format | Config File | Description | Introduction | Deprecated | Removed |
---|---|---|---|---|---|
--no-proxy | no-proxy | Don't start the proxy module | |||
--proxy-backend-addresses | proxy-backend-addresses | Address:port of the remote MySQL server | |||
--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-skip-profiling | proxy-skip-profiling | Disabled profiling of queries |
Table 15.7. mysql-monitor-agent Application Options
Format | Config File | Description | Introduction | Deprecated | Removed |
---|---|---|---|---|---|
--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 | |||
--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 |
|
Config-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 |
|
Config-File Format | admin-lua-script |
|
Permitted Values | ||
Type | filename |
|
Default |
|
Specify the script to use for the administration module for the proxy.
Command-Line Format | --admin-password |
|
Config-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 |
|
Config-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 |
|
Config-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.
Version Introduced | 2.1.0 | |
Command-Line Format | --agent-force-uncorking |
|
Config-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 collection intervals of data sent up to the server to prevent flooding the server with information.
The frequency of collecting the data is not modified by this setting.
Command-Line Format | --agent-generate-uuid |
|
Config-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 15.3.3.6.3, “Monitoring Multiple MySQL Servers”.
Command-Line Format | --agent-heartbeat-interval |
|
Config-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 |
|
Config-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-host-id-commandline |
|
Config-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 |
|
Config-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.
Command-Line Format | --agent-item-files |
|
Config-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 15.7.5, “Creating a Custom Data Collection Item”.
Version Introduced | 2.1.0 | |
Command-Line Format | --agent-max-response-size |
|
Config-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
Command-Line Format | --agent-mgmt-hostname |
|
Config-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, you should 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-run-os-tests |
|
Config-File Format | agent-run-os-tests |
Runs the internal operating system tests, and then exits. Using this option will generate 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.
A truncated sample of the output is provided below:
2010-01-22 16:15:45: (critical) MySQL Monitor Agent 2.1.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 |
|
Config-File Format | agent-sync-attempts |
Attempt to synchronise with the server during the resynchronization.
Command-Line Format | --agent-track-alloc |
|
Config-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 |
|
Config-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.
Command-Line Format | --basedir |
|
Config-File Format | basedir |
|
Permitted Values | ||
Type | filename |
Specify a base directory that will be prepended to all other filename configuration options. The base name should be an absolute (not relative) directory. If you specify a relative directory, mysql-monitor-agent will generate an error during startup.
Command-Line Format | --defaults-file |
|
Config-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 |
|
Config-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 |
|
Config-File Format | keepalive |
Creates a process surrounding the main mysql-monitor-agent which will attempt to restart the true mysql-monitor-agent process in thr event a crash or other failure.
Command-Line Format | --log-backtrace-on-crash |
|
Config-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.
Command-Line Format | --log-file |
|
Config-File Format | log-file |
|
Permitted Values | ||
Type | filename |
Specify the name of a file to be used to record log information.
Command-Line Format | --log-level |
|
Config-File Format | log-level |
|
Permitted Values | ||
Type | enumeration |
|
Valid Values |
error , warning , info , message , debug
|
The log level to be used when outputting error messages. The
specification will output that level (or lower) of a given
error message. For example, message
will
also output info
,
warning
, and error
messages.
Command-Line Format | --log-use-syslog |
|
Config-File Format | log-use-syslog |
Causes errors to be sent to the syslog (Unix/Linux only).
Command-Line Format | --lua-cpath |
|
Config-File Format | lua-cpath |
|
Permitted Values | ||
Type | filename |
Specify the LUA_CPATH
to be used when
loading compiled modules or libraries for Lua scripts.
Command-Line Format | --lua-path |
|
Config-File Format | lua-path |
|
Permitted Values | ||
Type | filename |
Specify the LUA_CPATH
to be used when
loading modules for Lua.
Command-Line Format | --max-open-files |
|
Config-File Format | max-open-files |
|
Permitted Values | ||
Type | numeric |
The maximum number of open files and sockets supported by the mysql-monitor-agent process. You may need to increase this with certain scripts.
Command-Line Format | --monitor-interval |
|
Config-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 |
|
Config-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 |
|
Config-File Format | monitor-password |
|
Permitted Values | ||
Type | string |
The password for the monitoring user account.
Command-Line Format | --monitor-username |
|
Config-File Format | monitor-username |
|
Permitted Values | ||
Type | string |
|
Default | monitor |
The username for the monitoring user account.
Command-Line Format | --no-proxy |
|
Config-File Format | no-proxy |
Disable the proxy module.
Command-Line Format | --plugin-dir |
|
Config-File Format | plugin-dir |
|
Permitted Values | ||
Type | filename |
The directory to use when loading plugins for mysql-monitor-agent.
Command-Line Format | --plugins |
|
Config-File Format | plugins |
|
Permitted Values | ||
Type | string |
A comma-separated list of the plugins to be loaded.
Command-Line Format | --proxy-address |
|
Config-File Format | proxy-address |
|
Permitted Values (>= 2.1.0) | ||
Type | string |
|
Default | :6446 |
The listening host name (or IP address) and port of the proxy
server. The default is :6446
(all IPs on
port 6446).
--proxy-read-only-backend-addresses=host:port
Command-Line Format | --proxy-read-only-backend-addresses |
|
Config-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
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 will go to server A; the second client connection to server B and the third client connection to server A.
Command-Line Format | --proxy-pool-no-change-user |
|
Config-File Format | proxy-pool-no-change-user |
Disables the use of the MySQL protocol
CHANGE_USER
when reusing a connection from
the pool of connections specified by the
backend-addresses
list.
disables profiling of queries (tracking time statistics). The default is for tracking to be enabled.
Command-Line Format | --proxy-fix-bug-25371 |
|
Config-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 |
|
Config-File Format | proxy-lua-script |
|
Permitted Values | ||
Type | filename |
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 then the updated content will automatically be used when a new connection is made.
Command-Line Format | --daemon |
|
Config-File Format | daemon |
Starts the proxy in daemon mode.
Command-Line Format | --pid-file |
|
Config-File Format | pid-file |
|
Permitted Values | ||
Type | filename |
Sets the name of the file to be used to store the process ID.
Command-Line Format | --user |
|
Config-File Format | user |
|
Permitted Values | ||
Type | string |
Run mysql-monitor-agent as the specified
user
.
Command-Line Format | --version |
|
Config-File Format | version |
Show the version number.
User Comments
Add your own comment.