event_acknowledge
Acknowledge or close Zabbix events by specifying event IDs, action type, and an optional message. Returns a JSON result of the acknowledgment process for tracking and integration.
Instructions
Acknowledge events in Zabbix.
Args:
eventids: List of event IDs to acknowledge
action: Acknowledge action (1=acknowledge, 2=close, etc.)
message: Acknowledge message
Returns:
str: JSON formatted acknowledgment result
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | ||
| eventids | Yes | ||
| message | No |
Implementation Reference
- src/zabbix_mcp_server.py:812-838 (handler)The event_acknowledge tool handler: acknowledges specified events in Zabbix using the API, with optional message. Registered via @mcp.tool() decorator. Validates read-only mode before execution.@mcp.tool() def event_acknowledge(eventids: List[str], action: int = 1, message: Optional[str] = None) -> str: """Acknowledge events in Zabbix. Args: eventids: List of event IDs to acknowledge action: Acknowledge action (1=acknowledge, 2=close, etc.) message: Acknowledge message Returns: str: JSON formatted acknowledgment result """ validate_read_only() client = get_zabbix_client() params = { "eventids": eventids, "action": action } if message: params["message"] = message result = client.event.acknowledge(**params) return format_response(result)