The following objects are directly related to the
The script object has the following properties.
|scriptid||string||(readonly) ID of the script.|
| command |
|string||Command to run.|
| name |
|string||Name of the script.|
|confirmation||string||Confirmation pop up text. The pop up will appear when trying to run the script from the Zabbix frontend.|
|description||string||Description of the script.|
|execute_on||integer|| Where to run the script.
0 - run on Zabbix agent;
1 - run on Zabbix server.
2 - (default) run on Zabbix server (proxy).
|groupid||string|| ID of the host group that the script can be run on. If set to 0, the script will be available on all host groups.
|host_access||integer|| Host permissions needed to run the script.
2 - (default) read;
3 - write.
| type |
|integer|| Script type.
0 - Script;
1 - IPMI;
5 - (default) Webhook.
|usrgrpid||string|| ID of the user group that will be allowed to run the script. If set to 0, the script will be available for all user groups.
|timeout||string|| Webhook script execution timeout in seconds. Time suffixes are supported, e.g. 30s, 1m.
|parameters||array||Array of webhook input parameters.|
Parameters passed to webhook script when it is called have the following properties.
Debug information of executed webhook script. The debug object has the following properties.
The log entry object has the following properties.
|ms||string||The time elapsed in milliseconds since the script was run before log entry was added.|