zabbix_create_action
Define new Zabbix actions to trigger automated responses, such as sending messages or running commands, when events occur.
Instructions
Create a new action in Zabbix for automated responses to events
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": {
"name": "<name>",
"eventsource": "<eventsource>",
"filter": "<filter>",
"operations": "<operations>"
},
"name": "zabbix_create_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the action | |
| filter | Yes | Action filter configuration | |
| status | No | Status: 0 (enabled), 1 (disabled) | |
| esc_period | No | Default escalation period | 1h |
| operations | Yes | Array of operations to perform | |
| r_longdata | No | Recovery long message template | |
| eventsource | Yes | Event source: 0 (trigger), 1 (discovery), 2 (auto registration), 3 (internal), 4 (service) | |
| r_shortdata | No | Recovery short message template | |
| ack_longdata | No | Update long message template | |
| def_longdata | No | Default long message template | |
| ack_shortdata | No | Update short message template | |
| def_shortdata | No | Default short message template | |
| pause_suppressed | No | Pause operations during maintenance | |
| update_operations | No | Update operations | |
| recovery_operations | No | Recovery operations |