这是原厂英文文档的翻译页面. 欢迎帮助我们 完善文档.
2022 Zabbix中国峰会
2022 Zabbix中国峰会
Table of Contents

> 对象

以下对象直接关联到script API。

脚本

这个脚本对象拥有以下属性。

Property Type Description
scriptid string (readonly) 脚本的ID。
command
(required)
string 运行命令。
name
(required)
string 脚本名称。
confirmation string 确认弹出文本信息,如果尝试在zabbix界面运行脚本,将会弹出文本信息。
description string 脚本描述。
execute_on integer 哪里去运行这个脚本

可能的值:
0 - 运行在zabbix agent
1 - 运行在zabbix server
2 - (默认) 运行在zabbix server或zabbix proxy
groupid string 可以运行脚本主机组的ID,如果设置为0,这个脚本适用于所有的主机组。

默认: 0.
host_access integer 运行脚本主机的权限

可能的值 :
2 - (默认) 读 3 - 写
type integer 脚本类型

可能的值:
0 - (默认) 脚本 1 - IPMI
usrgrpid string 允许运行脚本的用户组的ID,如果设置为0,这个脚本适用于所有的的用户组

默认: 0。