本节列出MySQL Zabbix agent 2插件配置文件(mysql.conf)支持的参数。
请注意:
参数 | 必选 | 范围 | 默认值 | 描述 |
---|---|---|---|---|
Plugins.Mysql.CallTimeout | no | 1-30 | 全局超时 | 等待请求完成的最大时间(秒)。 |
Plugins.Mysql.CustomQueriesPath | no | 空 | 用于存储自定义queries的目录完整路径。 自版本6.0.21起支持。 |
|
Plugins.Mysql.Default.Password | no | 连接MySQL的默认密码;当监控项键或命名会话中未指定值时使用。 自版本6.0.18起支持。 |
||
Plugins.Mysql.Default.TLSCAFile | no (yes, if Plugins.Mysql.Default.TLSConnect is set to verify_ca or verify_full) |
包含Top级CA证书的文件完整路径名,用于Zabbix agent 2与被监控数据库间加密通信的证书验证;当命名会话中未指定值时使用。 自版本6.0.18起支持。 |
||
Plugins.Mysql.Default.TLSCertFile | no (yes, if Plugins.Mysql.Default.TLSConnect is set to verify_ca or verify_full) |
包含agent证书或证书链的文件完整路径名,用于Zabbix agent 2与被监控数据库间加密通信;当命名会话中未指定值时使用。 自版本6.0.18起支持。 |
||
Plugins.Mysql.Default.TLSConnect | no | Zabbix agent 2与被监控数据库间通信的加密类型;当命名会话中未指定值时使用。 支持值: required - 需要TLS连接; verify_ca - 验证证书; verify_full - 验证证书及IP地址。 自版本6.0.18起支持。 |
||
Plugins.Mysql.Default.TLSKeyFile | no (yes, if Plugins.Mysql.Default.TLSConnect is set to verify_ca or verify_full) |
包含数据库私钥的文件完整路径名,用于Zabbix agent 2与被监控数据库间加密通信;当命名会话中未指定值时使用。 自版本6.0.18起支持。 |
||
Plugins.Mysql.Default.Uri | no | tcp://localhost:3306 | 连接MySQL的默认URI;当监控项键或命名会话中未指定值时使用。 不应包含嵌入式凭据(将被忽略)。 必须匹配URI格式。 支持方案: tcp 、unix ;可省略方案。可省略端口(默认=3306)。 示例: tcp://localhost:3306 localhost unix:/var/run/mysql.sock 自版本6.0.18起支持。 |
|
Plugins.Mysql.Default.User | no | 连接MySQL的默认用户名;当监控项键或命名会话中未指定值时使用。 自版本6.0.18起支持。 |
||
Plugins.Mysql.KeepAlive | no | 60-900 | 300 | 关闭未使用插件连接前的最大等待时间(秒)。 |
Plugins.Mysql.Sessions.<SessionName>.Password | no | 命名会话密码。 <SessionName> - 定义用于监控项键的会话名称。 |
||
Plugins.Mysql.Sessions.<SessionName>.TLSCAFile | no (yes, if Plugins.Mysql.Sessions.<SessionName>.TLSConnect is set to verify_ca or verify_full) |
包含Top级CA证书的文件完整路径名,用于Zabbix agent 2与被监控数据库间加密通信的证书验证。 <SessionName> - 定义用于监控项键的会话名称。 |
||
Plugins.Mysql.Sessions.<SessionName>.TLSCertFile | yes, if Plugins.Mysql.Sessions.<SessionName>.TLSKeyFile is specified Before version 6.0.23 always mandatory if Plugins.Mysql.Sessions.<SessionName>.TLSConnect is set to verify_ca or verify_full |
包含agent证书或证书链的文件完整路径名,用于Zabbix agent 2与被监控数据库间加密通信。 <SessionName> - 定义用于监控项键的会话名称。 |
||
Plugins.Mysql.Sessions.<SessionName>.TLSConnect | no | Zabbix agent 2与被监控数据库间通信的加密类型。 <SessionName> - 定义用于监控项键的会话名称。 支持值: required - 需要TLS连接; verify_ca - 验证证书; verify_full - 验证证书及IP地址。 |
||
Plugins.Mysql.Sessions.<SessionName>.TLSKeyFile | yes, if Plugins.Mysql.Sessions.<SessionName>.TLSCertFile is specified Before version 6.0.23 always mandatory if Plugins.Mysql.Sessions.<SessionName>.TLSConnect is set to verify_ca or verify_full |
包含数据库私钥的文件完整路径名,用于Zabbix agent 2与被监控数据库间加密通信。 <SessionName> - 定义用于监控项键的会话名称。 |
||
Plugins.Mysql.Sessions.<SessionName>.Uri | no | 命名会话的连接string。 <SessionName> - 定义用于监控项键的会话名称。 不应包含嵌入式凭据(将被忽略)。 必须匹配URI格式。 支持方案: tcp 、unix ;可省略方案。可省略端口(默认=3306)。 示例: tcp://localhost:3306 localhost unix:/var/run/mysql.sock |
||
Plugins.Mysql.Sessions.<SessionName>.User | no | 命名会话用户名。 <SessionName> - 定义用于监控项键的会话名称。 |
||
Plugins.Mysql.Timeout | no | 1-30 | 全局超时 | 建立连接时的最大等待时间(秒)。 |
另请参阅: