On this page
3 Ember+ 插件
概述
Zabbix agent 2 的配置文件用于配置插件。以下 Zabbix agent 2 配置参数支持用于运行 Ember+ 插件。
建议在其专用配置文件中指定这些参数(例如 emberplus.conf),然后使用 Include 指令将此文件添加到 Zabbix agent 2 配置中。
Ember+ 插件是一个可加载插件,可在 Ember+ plugin repository 中获取,并有完整说明。
该插件目前仅支持从源代码构建(适用于 Unix 和 Windows)。
请注意:
- 默认值反映的是进程默认值,而不是随附配置文件中的值。
- 这些值支持 environment variables;
- Zabbix 仅支持 UTF-8 编码且不带 BOM 的配置文件。
- 仅支持以“#”开头且位于行首的注释。
选项
| Parameter | Description |
|---|---|
| -V --version | 打印插件版本和许可证信息。 |
| -h --help | 打印帮助信息(简写)。 |
| -t, --test <item key> | 启动插件进行测试(忽略插件配置)。 |
参数
| Parameter | Mandatory | Range | Default | Description |
|---|---|---|---|---|
| Plugins.EmberPlus.Default.Uri | 否 | tcp://localhost:9998 | 默认连接 URI。唯一支持的 schema 是 tcp://。可以省略 schema。嵌入的凭据将被忽略。 |
|
| Plugins.EmberPlus.KeepAlive | 否 | 60-900 | 300 | 关闭未使用的插件连接前的最长等待时间(秒)。 |
| Plugins.EmberPlus.Sessions.<SessionName>.Uri | 否 | tcp://localhost:9998 | 用于指定会话的连接 URI。唯一支持的 schema 是 tcp://。可以省略 schema。嵌入的凭据将被忽略。<SessionName> - 定义会话名称,用于监控项键值中。 |
|
| Plugins.EmberPlus.System.Path | 否 | Ember+ 插件可执行文件的路径。 使用示例: Plugins.EmberPlus.System.Path=/usr/libexec/zabbix/zabbix-agent2-plugin-ember-plus |
||
| Plugins.EmberPlus.Timeout | 否 | 1-30 | 全局超时 | 首次连接以及会话中的后续操作时,等待服务器响应的时长(秒)。 |
另请参见:
- Zabbix agent 2 通用配置参数说明:Zabbix agent 2 (UNIX) / Zabbix agent 2 (Windows)
- 配置插件的说明