On this page
14 SMART 插件
概述
Zabbix agent 2 的配置文件用于配置插件。支持以下 Zabbix agent 2 配置参数来运行 SMART 插件。
建议将它们指定在各自的配置文件中(例如 smart.conf),然后使用 Include 指令将该文件添加到 Zabbix agent 2 配置中。
请注意:
- 默认值反映的是进程默认值,而不是随软件包提供的配置文件中的值;
- 值支持环境变量;
- 必须通过将
smartctl可执行文件所在目录添加到系统的PATH环境变量中,或配置Plugins.Smart.Path来设置其路径;这适用于 Linux 和 Windows; - Zabbix 仅支持 UTF-8 编码且不带 BOM 的配置文件;
- 以 "#" 开头的注释仅在行首支持。
参数
| Parameter | Mandatory | Range | Default | Description |
|---|---|---|---|---|
| Plugins.Smart.Path | no | smartctl | smartctl 可执行文件的路径。 | |
| Plugins.Smart.Timeout | no | 1-30 | global timeout | 请求执行超时(即在关闭请求之前等待其完成的时间,单位为秒)。 |
另请参见:
- Zabbix agent 2 通用配置参数说明: Zabbix agent 2 (UNIX) / Zabbix agent 2 (Windows)
- 插件 配置说明