zabbix.py
def ack(config, triggerid):
    """Ack the given trigger id.

    :param config: config for zapi
    :type config: dict
    :param triggerid: id of the trigger to ack
    :type triggerid: str
    """
    zapi = init(config)
    event = zapi.event.get(objectids=triggerid)
    try:
        msg = zapi.event.acknowledge(
            eventids=event[-1]['eventid'],
            action=2,
            message='Acknowledged by the Matrix-Zabbix bot')
        return_string = "Trigger {0} acknowledged. {1}".format(
            triggerid, msg)

    except ZabbixAPIException as error:
        return_string = str(error)

    return return_string
Ack the given trigger id.

    :param config: config for zapi
    :type config: dict
    :param triggerid: id of the trigger to ack
    :type triggerid: str
    
Ack the given trigger id.
Ack the given trigger id .
def ack(config, triggerid):
    zapi = init(config)
    event = zapi.event.get(objectids=triggerid)
    try:
        msg = zapi.event.acknowledge(
            eventids=event[-1]['eventid'],
            action=2,
            message='Acknowledged by the Matrix-Zabbix bot')
        return_string = "Trigger {0} acknowledged. {1}".format(
            triggerid, msg)
    except ZabbixAPIException as error:
        return_string = str(error)
    return return_string
def ack ( config , triggerid ) : zapi = init ( config ) event = zapi . event . get ( objectids = triggerid ) try : msg = zapi . event . acknowledge ( eventids = event [ - 1 ] [ 'eventid' ] , action = 2 , message = 'Acknowledged by the Matrix-Zabbix bot' ) return_string = "Trigger {0} acknowledged. {1}" . format ( triggerid , msg ) except ZabbixAPIException as error : return_string = str ( error ) return return_string
Ack the given trigger id.
Ack the given trigger id .
"""Ack the given trigger id.

    :param config: config for zapi
    :type config: dict
    :param triggerid: id of the trigger to ack
    :type triggerid: str
    """
config
config for zapi
config for zapi
triggerid
id of the trigger to ack
id of the trigger to ack