zabbix-agent2/src/libs/zbxserver/expression.c
/******************************************************************************
 *                                                                            *
 * Function: DBget_trigger_value                                              *
 *                                                                            *
 * Purpose: retrieve a particular value associated with the trigger's         *
 *          N_functionid'th function                                          *
 *                                                                            *
 * Return value: upon successful completion return SUCCEED                    *
 *               otherwise FAIL                                               *
 *                                                                            *
 ******************************************************************************/
DBget_trigger_value

Purpose: retrieve a particular value associated with the trigger's
N_functionid'th function

Return value: upon successful completion return SUCCEED
otherwise FAIL
DBget_trigger_value Purpose : retrieve a particular value associated with the trigger ' s N_functionid ' th function Return value : upon successful completion return SUCCEED otherwise FAIL
int	DBget_trigger_value(const DB_TRIGGER *trigger, char **replace_to, int N_functionid, int request)
{
	zbx_uint64_t	itemid;
	int		ret = FAIL;
	zabbix_log(LOG_LEVEL_DEBUG, "In %s()", __func__);
	if (SUCCEED == zbx_db_trigger_get_itemid(trigger, N_functionid, &itemid))
		ret = DBget_item_value(itemid, replace_to, request);
	zabbix_log(LOG_LEVEL_DEBUG, "End of %s():%s", __func__, zbx_result_string(ret));
	return ret;
}
int DBget_trigger_value ( const DB_TRIGGER * trigger , char * * replace_to , int N_functionid , int request ) { zbx_uint64_t itemid ; int ret = FAIL ; zabbix_log ( LOG_LEVEL_DEBUG , " " , __func__ ) ; if ( SUCCEED == zbx_db_trigger_get_itemid ( trigger , N_functionid , & itemid ) ) ret = DBget_item_value ( itemid , replace_to , request ) ; zabbix_log ( LOG_LEVEL_DEBUG , " " , __func__ , zbx_result_string ( ret ) ) ; return ret ; }
Function: DBget_trigger_value                                              
                                                                            
 Purpose: retrieve a particular value associated with the trigger's         
          N_functionid'th function                                          
                                                                            
 Return value: upon successful completion return SUCCEED                    
               otherwise FAIL
Function : DBget_trigger_value Purpose : retrieve a particular value associated with the trigger ' s N_functionid ' th function Return value : upon successful completion return SUCCEED otherwise FAIL