Skip to main content
Glama
mpeirone

zabbix-mcp-server

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
NameRequiredDescriptionDefault
actionNo
eventidsYes
messageNo

Implementation Reference

  • 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)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mpeirone/zabbix-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server