- MySQL plugin
- Overview
- Parameter details
- Plugins.Mysql.CallTimeout
- Plugins.Mysql.CustomQueriesPath
- Plugins.Mysql.CustomQueriesEnabled
- Plugins.Mysql.Default.Password
- Plugins.Mysql.Default.TLSConnect
- Plugins.Mysql.Default.TLSCAFile
- Plugins.Mysql.Default.TLSCertFile
- Plugins.Mysql.Default.TLSKeyFile
- Plugins.Mysql.Default.Uri
- Plugins.Mysql.Default.User
- Plugins.Mysql.KeepAlive
- Plugins.Mysql.Sessions.<SessionName>.Password
- Plugins.Mysql.Sessions.<SessionName>.TLSConnect
- Plugins.Mysql.Sessions.<SessionName>.TLSCAFile
- Plugins.Mysql.Sessions.<SessionName>.TLSCertFile
- Plugins.Mysql.Sessions.<SessionName>.TLSKeyFile
- Plugins.Mysql.Sessions.<SessionName>.Uri
- Plugins.Mysql.Sessions.<SessionName>.User
- Plugins.Mysql.Timeout
- See also
MySQL plugin
Overview
Configuration parameters allow customizing the MySQL plugin behavior.
It is recommended to specify them in their own configuration file (e.g. mysql.conf), rather than in the agent 2 configuration file. Then use the Include directive to include this file in the Zabbix agent 2 configuration.
All parameters are optional, unless explicitly stated that the parameter is mandatory.
This page is structured as:
- Parameter overview (to see full details of a parameter, click its name)
- Parameter details
| Parameter | Description |
|---|---|
| Plugins.Mysql.CallTimeout | Specify the maximum amount of time in seconds to wait for a request to be done. |
| Plugins.Mysql.CustomQueriesPath | Specify full pathname of the directory containing .sql files with custom queries. |
| Plugins.Mysql.CustomQueriesEnabled | Enable execution of the mysql.custom.query item key. |
| Plugins.Mysql.Default.Password | Specify the default password. |
| Plugins.Mysql.Default.TLSConnect | Specify the default level of encryption for communications between Zabbix agent 2 and monitored databases. |
| Plugins.Mysql.Default.TLSCAFile | Specify full pathname of the file containing top-level CA(s) certificates for peer certificate verification. |
| Plugins.Mysql.Default.TLSCertFile | Specify full pathname of the file containing the agent certificate or certificate chain. |
| Plugins.Mysql.Default.TLSKeyFile | Specify full pathname of the file containing the database private key. |
| Plugins.Mysql.Default.Uri | Specify the default URI. |
| Plugins.Mysql.Default.User | Specify the default username. |
| Plugins.Mysql.KeepAlive | Specify the maximum time of waiting (in seconds) before unused plugin connections are closed. |
| Plugins.Mysql.Sessions.<SessionName>.Password | Specify the named session password. |
| Plugins.Mysql.Sessions.<SessionName>.TLSConnect | Specify the named session level of encryption for communications between Zabbix agent 2 and monitored databases. |
| Plugins.Mysql.Sessions.<SessionName>.TLSCAFile | Specify full pathname of the file containing top-level CA(s) certificates for named session peer certificate verification. |
| Plugins.Mysql.Sessions.<SessionName>.TLSCertFile | Specify full pathname of the file containing the named session agent certificate or certificate chain. |
| Plugins.Mysql.Sessions.<SessionName>.TLSKeyFile | Specify full pathname of the file containing the name dsession database private key. |
| Plugins.Mysql.Sessions.<SessionName>.Uri | Specify the named session URI. |
| Plugins.Mysql.Sessions.<SessionName>.User | Specify the named session username. |
| Plugins.Mysql.Timeout | Set the maximum time in seconds for waiting when a connection has to be established. |
Note that:
- The default values reflect process defaults, not the values in the shipped configuration files;
- Values support environment variables;
- Zabbix supports configuration files only in UTF-8 encoding without BOM;
- Comments starting with "#" are only supported at the beginning of the line.
Parameter details
Plugins.Mysql.CallTimeout
Specify the maximum amount of time in seconds to wait for a request to be done.
Default: global timeout
Range: 1-30
Plugins.Mysql.CustomQueriesPath
Specify full pathname of the directory containing .sql files with custom queries.
Defaults:/usr/local/share/zabbix/custom-queries/mysql - for Unix systems,*:\Program Files\Zabbix Agent 2\Custom Queries\Mysql - for Windows systems (where * is the drive name from the ProgramFiles environment variable)
Plugins.Mysql.CustomQueriesEnabled
Enable execution of the mysql.custom.query item key.
If disabled, no queries will be loaded from the custom query directory path.
Default: false
Range: true/false
Plugins.Mysql.Default.Password
Specify the default password for a protected MySQL server.
Plugins.Mysql.Default.TLSConnect
Specify the default level of encryption for communications between Zabbix agent 2 and monitored databases.
Range:
required - require TLS connection;
verify_ca - verify certificates;
verify_full - verify certificates and IP address
Plugins.Mysql.Default.TLSCAFile
Specify full pathname of the file containing top-level CA(s) certificates for peer certificate verification, used for encrypted communications between Zabbix agent 2 and monitored databases.
Mandatory: yes, if Plugins.Mysql.Default.TLSConnect is set to verify_ca or verify_full
Plugins.Mysql.Default.TLSCertFile
Specify full pathname of the file containing the agent certificate or certificate chain, used for encrypted communications between Zabbix agent 2 and monitored databases.
Mandatory: yes, if Plugins.Mysql.Default.TLSKeyFile is specified
Plugins.Mysql.Default.TLSKeyFile
Specify full pathname of the file containing the database private key, used for encrypted communications between Zabbix agent 2 and monitored databases.
Mandatory: yes, if Plugins.Mysql.Default.TLSCertFile is specified
Plugins.Mysql.Default.Uri
Specify the default URI for connecting to MySQL server.
Embedded credentials will be ignored.
Supported schemes: tcp, unix
The schema can be omitted.
The port can be omitted (default=3306).
Examples:
tcp://localhost:3306
localhost
unix:/var/run/mysql.sock
Plugins.Mysql.Default.User
Specify the default username for a protected MySQL server.
Plugins.Mysql.KeepAlive
Specify the maximum time of waiting (in seconds) before unused plugin connections are closed.
Default: 300
Range: 60-900
Plugins.Mysql.Sessions.<SessionName>.Password
Specify the named session password for a protected MySQL server.
<SessionName> - define name of a session for using in item keys.
Plugins.Mysql.Sessions.<SessionName>.TLSConnect
Specify the level of named-session encryption for communications between Zabbix agent 2 and monitored databases.
<SessionName> - define name of a session for using in item keys.
Range:
required - require TLS connection;
verify_ca - verify certificates;
verify_full - verify certificates and IP address
Plugins.Mysql.Sessions.<SessionName>.TLSCAFile
Specify full pathname of the file containing top-level CA(s) certificates for named-session peer certificate verification, used for encrypted communications between Zabbix agent 2 and monitored databases.
<SessionName> - define name of a session for using in item keys.
Mandatory: yes, if Plugins.Mysql.Sessions.<SessionName>.TLSConnect is set to verify_ca or verify_full
Plugins.Mysql.Sessions.<SessionName>.TLSCertFile
Specify full pathname of the file containing the named-session agent certificate or certificate chain, used for encrypted communications between Zabbix agent 2 and monitored databases.
<SessionName> - define name of a session for using in item keys.
Mandatory: yes, if Plugins.Mysql.Sessions.<SessionName>.TLSKeyFile is specified
Plugins.Mysql.Sessions.<SessionName>.TLSKeyFile
Specify full pathname of the file containing the named-session database private key, used for encrypted communications between Zabbix agent 2 and monitored databases.
<SessionName> - define name of a session for using in item keys.
Mandatory: yes, if Plugins.Mysql.Sessions.<SessionName>.TLSCertFile is specified
Plugins.Mysql.Sessions.<SessionName>.Uri
Specify the named session URI for connecting to MySQL server.
<SessionName> - define name of a session for using in item keys.
Embedded credentials will be ignored.
Supported schemes: tcp, unix
The schema can be omitted.
The port can be omitted (default=3306).
Examples:
tcp://localhost:3306
localhost
unix:/var/run/mysql.sock
Plugins.Mysql.Sessions.<SessionName>.User
Specify the named session username for a protected MySQL server.
<SessionName> - define name of a session for using in item keys.
Plugins.Mysql.Timeout
Set the maximum time in seconds for waiting when a connection has to be established.
Default: global timeout
Range: 1-30
See also
- Description of general Zabbix agent 2 configuration parameters: Zabbix agent 2 (UNIX) / Zabbix agent 2 (Windows)
- Instructions for configuring plugins