Ember+ 插件
概述
配置参数可用于自定义 Ember+ 插件的行为。
建议将这些参数指定在它们自己的配置文件中(例如 emberplus.conf),而不是写在 agent 2 配置文件中。然后使用 Include 指令将此文件包含到 Zabbix agent 2 配置中。
Ember+ 插件是一个可加载插件,可在 Ember+ 插件仓库 中获取并查看完整说明。
该插件目前只能从源代码构建(适用于 Unix 和 Windows)。
除非明确说明该参数为必填,否则所有参数均为可选。
请注意:
Parameter details
Plugins.EmberPlus.Default.Uri
Specify the default URI for connecting to Ember+.
The only supported schema is tcp://. A schema can be omitted. Embedded credentials will be ignored.
Default: tcp://localhost:9998
Plugins.EmberPlus.KeepAlive
Set the maximum time of waiting (in seconds) before unused plugin connections are closed.
Default: 300
Range: 60-900
Plugins.EmberPlus.Sessions.<SessionName>.Uri
Specify the named session URI for connecting to Ember+.
The only supported schema is tcp://. A schema can be omitted. Embedded credentials will be ignored.
<SessionName> - define name of a session for using in item keys.
Default: tcp://localhost:9998
Plugins.EmberPlus.System.Path
Specify path to the Ember+ plugin executable.
Example: Plugins.EmberPlus.System.Path=/usr/libexec/zabbix/zabbix-agent2-plugin-ember-plus
Plugins.EmberPlus.Timeout
Set the duration, in seconds, to wait for a server to respond when first connecting and on follow-up operations in the session.
Default: global timeout
Range: 1-30
选项
| Parameter | Description |
|---|---|
| -V --version | 打印插件版本和许可信息。 |
| -h --help | 打印帮助信息(简写)。 |
| -t, --test <item key> | 启动插件进行测试(忽略插件配置)。 |
参数
| Parameter | Mandatory | Range | Default | Description |
|---|---|---|---|---|
| Plugins.EmberPlus.Default.Uri | no | tcp://localhost:9998 | 用于连接的默认 URI。唯一支持的 schema 是 tcp://。可以省略 schema。嵌入的凭据将被忽略。 |
|
| Plugins.EmberPlus.KeepAlive | no | 60-900 | 300 | 在关闭未使用的插件连接之前,等待的最长时间(秒)。 |
| Plugins.EmberPlus.Sessions.<SessionName>.Uri | no | tcp://localhost:9998 | 用于连接指定会话的 URI。唯一支持的 schema 是 tcp://。可以省略 schema。嵌入的凭据将被忽略。<SessionName> - 定义一个会话名称,用于监控项键值中。 |
|
| Plugins.EmberPlus.System.Path | no | Ember+ 插件可执行文件的路径。 示例用法: Plugins.EmberPlus.System.Path=/usr/libexec/zabbix/zabbix-agent2-plugin-ember-plus |
||
| Plugins.EmberPlus.Timeout | no | 1-30 | global timeout | 首次连接以及会话中的后续操作时,等待服务器响应的时长(秒)。 |
另请参见:
- Zabbix agent 2 常规配置参数说明:Zabbix agent 2 (UNIX) / Zabbix agent 2 (Windows)
- 配置 plugins 的说明