1 Ceph 插件
概述
Zabbix agent 2 的配置文件用于配置插件。运行 Ceph 插件时支持以下 Zabbix agent 2 配置参数。
建议将这些参数指定在它们自己的配置文件中(例如 ceph.conf),然后使用 Include 指令将该文件添加到 Zabbix agent 2 配置中。
请注意:
参数
| Parameter | Mandatory | Range | Default | Description |
|---|---|---|---|---|
| Plugins.Ceph.Default.ApiKey | no | 用于连接 Ceph 的默认 API 密钥;如果监控项键或命名会话中未指定值,则使用该值。 | ||
| Plugins.Ceph.Default.Mode | no | native / restful | restful (deprecated) | 用于连接 Ceph 的默认模式。 native 模式仅在 Linux 上受支持,并且从 Ceph 16 开始支持。restful 模式在 Ceph 20 或更高版本中将无法工作。 请注意,不同模式使用的用户凭据集不同,彼此不兼容。 |
| Plugins.Ceph.Default.User | no | 用于连接 Ceph 的默认用户名;如果监控项键或命名会话中未指定值,则使用该值。 | ||
| Plugins.Ceph.Default.Uri | no | https://localhost:8003 | 用于连接 Ceph 的默认 URI;如果监控项键或命名会话中未指定值,则使用该值。 不应包含嵌入式凭据(它们将被忽略)。 必须符合 URI 格式。 仅支持 https scheme;scheme 可以省略。端口可以省略(默认值=8003)。 示例: https://127.0.0.1:8003localhost |
|
| Plugins.Ceph.InsecureSkipVerify | no | false / true | false | 确定 http 客户端是否应验证服务器的证书链和主机名。 如果为 true,TLS 将接受服务器提供的任何证书以及该证书中的任何主机名。在此模式下,TLS 容易受到中间人攻击(仅应用于测试)。 |
| Plugins.Ceph.KeepAlive | no | 60-900 | 300 | 未使用的插件连接在关闭前的最长等待时间(秒)。 |
| Plugins.Ceph.Sessions.<SessionName>.ApiKey | no | 命名会话的 API 密钥。 <SessionName> - 定义用于监控项键中的会话名称。 |
||
| Plugins.Ceph.Sessions.<SessionName>.Mode | no | native / restful | restful (deprecated) | 用于连接 Ceph 的命名会话模式。 native 模式仅在 Linux 上受支持,并且从 Ceph 16 开始支持。restful 模式在 Ceph 20 或更高版本中将无法工作。 请注意,不同模式使用的用户凭据集不同,彼此不兼容。 |
| Plugins.Ceph.Sessions.<SessionName>.User | no | 命名会话用户名。 <SessionName> - 定义用于监控项键中的会话名称。 |
||
| Plugins.Ceph.Sessions.<SessionName>.Uri | no | 命名会话的连接字符串。 <SessionName> - 定义用于监控项键中的会话名称。 不应包含嵌入式凭据(它们将被忽略)。 必须符合 URI 格式。 仅支持 https scheme;scheme 可以省略。端口可以省略(默认值=8003)。 示例: https://127.0.0.1:8003localhost |
||
| Plugins.Ceph.Timeout | no | 1-30 | global timeout | 请求执行超时(即在关闭请求之前等待其完成的时长,单位为秒)。 |
另请参见:
- Zabbix agent 2 通用配置参数说明: Zabbix agent 2 (UNIX) / Zabbix agent 2 (Windows)
- 配置 plugins 的说明