Lines Matching refs:N_functionid
87 int get_N_functionid(const char *expression, int N_functionid, zbx_uint64_t *functionid, const char… in get_N_functionid() argument
117 if (++num == N_functionid) in get_N_functionid()
186 static int get_N_itemid(const char *expression, int N_functionid, zbx_uint64_t *itemid) in get_N_itemid() argument
195 __function_name, expression, N_functionid); in get_N_itemid()
197 if (SUCCEED == get_N_functionid(expression, N_functionid, &functionid, NULL)) in get_N_itemid()
1061 static int DBget_trigger_value(const char *expression, char **replace_to, int N_functionid, int req… in DBget_trigger_value() argument
1070 if (SUCCEED == get_N_itemid(expression, N_functionid, &itemid)) in DBget_trigger_value()
1413 static int get_history_log_value(const char *expression, char **replace_to, int N_functionid, in get_history_log_value() argument
1423 if (SUCCEED == get_N_itemid(expression, N_functionid, &itemid)) in get_history_log_value()
1448 static int DBitem_lastvalue(const char *expression, char **lastvalue, int N_functionid, int raw) in DBitem_lastvalue() argument
1459 if (FAIL == get_N_itemid(expression, N_functionid, &itemid)) in DBitem_lastvalue()
1513 static int DBitem_value(const char *expression, char **value, int N_functionid, int clock, int ns, … in DBitem_value() argument
1524 if (FAIL == get_N_itemid(expression, N_functionid, &itemid)) in DBitem_value()
2177 int N_functionid) in get_host_inventory() argument
2187 if (SUCCEED != get_N_itemid(expression, N_functionid, &itemid)) in get_host_inventory()
2449 …t char *macro_in_list(const char *str, zbx_strloc_t strloc, const char **macros, int *N_functionid) in macro_in_list() argument
2466 if (NULL != N_functionid) in macro_in_list()
2467 *N_functionid = 1; in macro_in_list()
2475 if (NULL != N_functionid) in macro_in_list()
2476 *N_functionid = str[i] - '0'; in macro_in_list()
2513 int N_functionid, ret = FAIL; in get_trigger_function_value() local
2515 if (NULL != macro_in_list(data, simple_macro->host, simple_host_macros, &N_functionid)) in get_trigger_function_value()
2517 if (SUCCEED != DBget_trigger_value(expression, &host, N_functionid, ZBX_REQUEST_HOST_HOST)) in get_trigger_function_value()
2521 if (NULL != macro_in_list(data, simple_macro->key, simple_key_macros, &N_functionid)) in get_trigger_function_value()
2523 if (SUCCEED != DBget_trigger_value(expression, &key, N_functionid, ZBX_REQUEST_ITEM_KEY_ORIG)) in get_trigger_function_value()
2678 int N_functionid, indexed_macro, require_numeric, require_address, ret, res = SUCCEED, in substitute_simple_macros() local
2714 N_functionid = 1; in substitute_simple_macros()
2737 else if (NULL == (m = macro_in_list(*data, token.loc, ex_macros, &N_functionid))) in substitute_simple_macros()
2747 &N_functionid))) in substitute_simple_macros()
2864 N_functionid, ZBX_REQUEST_HOST_HOST); in substitute_simple_macros()
2869 N_functionid, ZBX_REQUEST_HOST_NAME); in substitute_simple_macros()
2874 N_functionid, ZBX_REQUEST_HOST_DESCRIPTION); in substitute_simple_macros()
2879 N_functionid, ZBX_REQUEST_HOST_IP); in substitute_simple_macros()
2884 N_functionid, ZBX_REQUEST_HOST_DNS); in substitute_simple_macros()
2889 N_functionid, ZBX_REQUEST_HOST_CONN); in substitute_simple_macros()
2894 N_functionid, ZBX_REQUEST_HOST_PORT); in substitute_simple_macros()
2900 N_functionid); in substitute_simple_macros()
2905 N_functionid, ZBX_REQUEST_ITEM_DESCRIPTION); in substitute_simple_macros()
2910 N_functionid, ZBX_REQUEST_ITEM_ID); in substitute_simple_macros()
2915 N_functionid, ZBX_REQUEST_ITEM_KEY); in substitute_simple_macros()
2920 N_functionid, ZBX_REQUEST_ITEM_KEY_ORIG); in substitute_simple_macros()
2924 ret = DBitem_lastvalue(c_event->trigger.expression, &replace_to, N_functionid, in substitute_simple_macros()
2930 N_functionid, ZBX_REQUEST_ITEM_LOG_AGE, c_event->clock, in substitute_simple_macros()
2936 N_functionid, ZBX_REQUEST_ITEM_LOG_DATE, c_event->clock, in substitute_simple_macros()
2942 N_functionid, ZBX_REQUEST_ITEM_LOG_EVENTID, c_event->clock, in substitute_simple_macros()
2948 N_functionid, ZBX_REQUEST_ITEM_LOG_NSEVERITY, c_event->clock, in substitute_simple_macros()
2954 N_functionid, ZBX_REQUEST_ITEM_LOG_SEVERITY, c_event->clock, in substitute_simple_macros()
2960 N_functionid, ZBX_REQUEST_ITEM_LOG_SOURCE, c_event->clock, in substitute_simple_macros()
2966 N_functionid, ZBX_REQUEST_ITEM_LOG_TIME, c_event->clock, in substitute_simple_macros()
2972 N_functionid, ZBX_REQUEST_ITEM_NAME); in substitute_simple_macros()
2977 N_functionid, ZBX_REQUEST_ITEM_NAME_ORIG); in substitute_simple_macros()
2981 ret = DBitem_value(c_event->trigger.expression, &replace_to, N_functionid, in substitute_simple_macros()
2987 N_functionid, ZBX_REQUEST_PROXY_NAME); in substitute_simple_macros()
2992 N_functionid, ZBX_REQUEST_PROXY_DESCRIPTION); in substitute_simple_macros()
3140 N_functionid, ZBX_REQUEST_HOST_HOST); in substitute_simple_macros()
3145 N_functionid, ZBX_REQUEST_HOST_NAME); in substitute_simple_macros()
3150 N_functionid, ZBX_REQUEST_HOST_DESCRIPTION); in substitute_simple_macros()
3155 N_functionid, ZBX_REQUEST_HOST_IP); in substitute_simple_macros()
3160 N_functionid, ZBX_REQUEST_HOST_DNS); in substitute_simple_macros()
3165 N_functionid, ZBX_REQUEST_HOST_CONN); in substitute_simple_macros()
3170 N_functionid, ZBX_REQUEST_HOST_PORT); in substitute_simple_macros()
3176 N_functionid); in substitute_simple_macros()
3181 N_functionid, ZBX_REQUEST_ITEM_DESCRIPTION); in substitute_simple_macros()
3186 N_functionid, ZBX_REQUEST_ITEM_ID); in substitute_simple_macros()
3191 N_functionid, ZBX_REQUEST_ITEM_KEY); in substitute_simple_macros()
3196 N_functionid, ZBX_REQUEST_ITEM_KEY_ORIG); in substitute_simple_macros()
3201 N_functionid, ZBX_REQUEST_ITEM_NAME); in substitute_simple_macros()
3206 N_functionid, ZBX_REQUEST_ITEM_NAME_ORIG); in substitute_simple_macros()
3211 N_functionid, ZBX_REQUEST_PROXY_NAME); in substitute_simple_macros()
3216 N_functionid, ZBX_REQUEST_PROXY_DESCRIPTION); in substitute_simple_macros()
3745 ret = DBget_trigger_value(event->trigger.expression, &replace_to, N_functionid, in substitute_simple_macros()
3750 ret = DBget_trigger_value(event->trigger.expression, &replace_to, N_functionid, in substitute_simple_macros()
3755 ret = DBget_trigger_value(event->trigger.expression, &replace_to, N_functionid, in substitute_simple_macros()
3760 ret = DBget_trigger_value(event->trigger.expression, &replace_to, N_functionid, in substitute_simple_macros()
3765 ret = DBget_trigger_value(event->trigger.expression, &replace_to, N_functionid, in substitute_simple_macros()
3770 ret = DBget_trigger_value(event->trigger.expression, &replace_to, N_functionid, in substitute_simple_macros()
3775 ret = DBitem_value(event->trigger.expression, &replace_to, N_functionid, in substitute_simple_macros()
3780 ret = DBitem_lastvalue(event->trigger.expression, &replace_to, N_functionid, in substitute_simple_macros()
3821 ret = DBget_trigger_value(event->trigger.expression, &replace_to, N_functionid, in substitute_simple_macros()
3826 ret = DBget_trigger_value(event->trigger.expression, &replace_to, N_functionid, in substitute_simple_macros()
3831 ret = DBget_trigger_value(event->trigger.expression, &replace_to, N_functionid, in substitute_simple_macros()
3836 ret = DBget_trigger_value(event->trigger.expression, &replace_to, N_functionid, in substitute_simple_macros()
3841 ret = DBget_trigger_value(event->trigger.expression, &replace_to, N_functionid, in substitute_simple_macros()
3846 ret = DBget_trigger_value(event->trigger.expression, &replace_to, N_functionid, in substitute_simple_macros()
3851 ret = DBget_trigger_value(event->trigger.expression, &replace_to, N_functionid, in substitute_simple_macros()
3860 ret = DBitem_lastvalue(event->trigger.expression, &replace_to, N_functionid, in substitute_simple_macros()
3865 ret = DBitem_value(event->trigger.expression, &replace_to, N_functionid, in substitute_simple_macros()
4160 ret = DBget_trigger_value(event->trigger.expression, &replace_to, N_functionid, in substitute_simple_macros()
4165 ret = DBget_trigger_value(event->trigger.expression, &replace_to, N_functionid, in substitute_simple_macros()
4170 ret = DBget_trigger_value(event->trigger.expression, &replace_to, N_functionid, in substitute_simple_macros()
4175 ret = DBget_trigger_value(event->trigger.expression, &replace_to, N_functionid, in substitute_simple_macros()
4180 ret = DBget_trigger_value(event->trigger.expression, &replace_to, N_functionid, in substitute_simple_macros()
4185 ret = DBget_trigger_value(event->trigger.expression, &replace_to, N_functionid, in substitute_simple_macros()
4190 ret = DBget_trigger_value(event->trigger.expression, &replace_to, N_functionid, in substitute_simple_macros()
4195 ret = DBitem_lastvalue(event->trigger.expression, &replace_to, N_functionid, in substitute_simple_macros()
4200 ret = DBitem_value(event->trigger.expression, &replace_to, N_functionid, in substitute_simple_macros()
4206 N_functionid); in substitute_simple_macros()