.. versionadded:: Fluorine

    Retrieve trigger ID and description based in host ID and trigger description.

    .. note::
        https://www.zabbix.com/documentation/3.4/manual/api/reference/trigger/get

    :param hostid: ID of the host whose trigger we want to find
    :param trigger_desc: Description of trigger (trigger name) whose we want to find
    :param priority: Priority of trigger (useful if we have same name for more triggers with different priorities)

    :param _connection_user: Optional - zabbix user (can also be set in opts or pillar, see module's docstring)
    :param _connection_password: Optional - zabbix password (can also be set in opts or pillar, see module's docstring)
    :param _connection_url: Optional - url of zabbix frontend (can also be set in opts, pillar, see module's docstring)

    :return: Trigger ID and description. False if no trigger found or on failure.

    CLI Example:
    .. code-block:: bash

        salt '*' zabbix.triggerid_get 1111 'trigger name to find' 5

def triggerid_get(hostid=None, trigger_desc=None, priority=4, **kwargs):
    '''
    .. versionadded:: Fluorine

    Retrieve trigger ID and description based in host ID and trigger description.

    .. note::
        https://www.zabbix.com/documentation/3.4/manual/api/reference/trigger/get

    :param hostid: ID of the host whose trigger we want to find
    :param trigger_desc: Description of trigger (trigger name) whose we want to find
    :param priority: Priority of trigger (useful if we have same name for more triggers with different priorities)

    :param _connection_user: Optional - zabbix user (can also be set in opts or pillar, see module's docstring)
    :param _connection_password: Optional - zabbix password (can also be set in opts or pillar, see module's docstring)
    :param _connection_url: Optional - url of zabbix frontend (can also be set in opts, pillar, see module's docstring)

    :return: Trigger ID and description. False if no trigger found or on failure.

    CLI Example:
    .. code-block:: bash

        salt '*' zabbix.triggerid_get 1111 'trigger name to find' 5
    '''
    conn_args = _login(**kwargs)
    ret = {}
    try:
        if conn_args:
            method = 'trigger.get'
            if not hostid or not trigger_desc:
                return {'result': False, 'comment': 'hostid and trigger_desc params are required'}
            params = {'output': ['triggerid', 'description'],
                      'filter': {'priority': priority}, 'hostids': hostid}
            params = _params_extend(params, _ignore_name=True, **kwargs)
            ret = _query(method, params, conn_args['url'], conn_args['auth'])
            if ret['result']:
                for r in ret['result']:
                    if trigger_desc in r['description']:
                        ret['result'] = r
                        return ret
                return False
            else:
                return False
        else:
            raise KeyError
    except KeyError:
        return ret