zabbix_create_script
Create a new script in Zabbix for automated actions, manual host operations, or event handling. Define command, type, scope, and execution options to extend monitoring workflows.
Instructions
Create a new script in Zabbix
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the script | |
| port | No | Port for SSH/Telnet scripts | |
| type | Yes | Type of script (0 - script, 1 - IPMI, 2 - SSH, 3 - Telnet, 4 - global script, 5 - URL) | |
| scope | Yes | Script scope (1 - action operation, 2 - manual host action, 4 - manual event action) | |
| command | Yes | 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) | |
| authtype | No | Authentication type for SSH scripts (0 - password, 1 - public key) | |
| password | No | Password for SSH/Telnet scripts | |
| username | No | Username for SSH/Telnet scripts | |
| usrgrpid | No | User group ID that can execute the script (0 for all groups) | |
| publickey | No | Public key file name for SSH scripts | |
| execute_on | No | Where to execute the script (0 - Zabbix agent, 1 - Zabbix server, 2 - Zabbix server (proxy)) | |
| parameters | No | Script parameters for webhook scripts | |
| privatekey | No | Private key file name for SSH scripts | |
| 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 |