SMART 插件

概述

配置参数可用于自定义 SMART 插件的行为。

建议将这些参数指定在它们自己的配置文件中(例如 smart.conf),而不是写在 agent 2 配置文件中。然后使用 Include 指令将此文件包含到 Zabbix agent 2 配置中。

除非明确说明该参数为必填,否则所有参数均为可选

请注意:

  • 默认值反映的是进程默认值,而不是随软件提供的配置文件中的值;
  • 值支持环境变量
  • 必须通过将 smartctl 可执行文件所在目录添加到系统的 PATH 环境变量中,或通过配置 Plugins.Smart.Path 来设置其路径;这适用于 Linux 和 Windows;
  • Zabbix 仅支持 UTF-8 编码且不带 BOM 的配置文件;
  • 以 "#" 开头的注释仅在行首支持。

Parameter details

Plugins.Smart.Path

Specify path to the smartctl executable.

Default: smartctl

Plugins.Smart.Timeout

Set the request execution timeout (the duration, in seconds, to wait for a request to complete before shutting it down).

Default: global timeout Range: 1-30

参数

Parameter Mandatory Range Default Description
Plugins.Smart.Path no smartctl smartctl 可执行文件的路径。
Plugins.Smart.Timeout no 1-30 global timeout 请求执行超时(即在关闭请求之前等待其完成的时长,单位为秒)。

另请参见: