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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"scriptid": "<scriptid>"
},
"name": "zabbix_update_script"
}
}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 |