zabbix_update_script
Update an existing script in Zabbix by providing its ID and modifying properties like name, command, type, or execution options.
Instructions
Update an existing script in Zabbix
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name of the script | |
| type | No | Type of script (0 - script, 1 - IPMI, 2 - SSH, 3 - Telnet, 4 - global script, 5 - URL) | |
| scope | No | Script scope (1 - action operation, 2 - manual host action, 4 - manual event action) | |
| command | No | Command to execute (for script type) or URL (for URL type) | |
| groupid | No | Host group ID that the script can be run on (0 for all groups) | |
| scriptid | Yes | ID of the script to update | |
| usrgrpid | No | User group ID that can execute the script (0 for all groups) | |
| execute_on | No | Where to execute the script (0 - Zabbix agent, 1 - Zabbix server, 2 - Zabbix server (proxy)) | |
| description | No | Description of the script | |
| host_access | No | Host permissions needed (2 - read, 3 - write) | |
| confirmation | No | Confirmation text to display before executing the script |