zabbix-agent2/src/libs/zbxserver/expression.c
/******************************************************************************
 *                                                                            *
 * Function: DBitem_value                                                     *
 *                                                                            *
 * Purpose: retrieve item value by trigger expression and number of function  *
 *                                                                            *
 * Return value: upon successful completion return SUCCEED                    *
 *               otherwise FAIL                                               *
 *                                                                            *
 ******************************************************************************/
DBitem_value

Purpose: retrieve item value by trigger expression and number of function

Return value: upon successful completion return SUCCEED
otherwise FAIL
DBitem_value Purpose : retrieve item value by trigger expression and number of function Return value : upon successful completion return SUCCEED otherwise FAIL
static int	DBitem_value(const DB_TRIGGER *trigger, char **value, int N_functionid, int clock, int ns, int raw)
{
	zbx_uint64_t	itemid;
	zbx_timespec_t	ts = {clock, ns};
	int		ret;
	zabbix_log(LOG_LEVEL_DEBUG, "In %s()", __func__);
	if (SUCCEED == (ret = zbx_db_trigger_get_itemid(trigger, N_functionid, &itemid)))
		ret = DBitem_get_value(itemid, value, raw, &ts);
	zabbix_log(LOG_LEVEL_DEBUG, "End of %s():%s", __func__, zbx_result_string(ret));
	return ret;
}
static int DBitem_value ( const DB_TRIGGER * trigger , char * * value , int N_functionid , int clock , int ns , int raw ) { zbx_uint64_t itemid ; zbx_timespec_t ts = { clock , ns } ; int ret ; zabbix_log ( LOG_LEVEL_DEBUG , " " , __func__ ) ; if ( SUCCEED == ( ret = zbx_db_trigger_get_itemid ( trigger , N_functionid , & itemid ) ) ) ret = DBitem_get_value ( itemid , value , raw , & ts ) ; zabbix_log ( LOG_LEVEL_DEBUG , " " , __func__ , zbx_result_string ( ret ) ) ; return ret ; }
Function: DBitem_value                                                     
                                                                            
 Purpose: retrieve item value by trigger expression and number of function  
                                                                            
 Return value: upon successful completion return SUCCEED                    
               otherwise FAIL
Function : DBitem_value Purpose : retrieve item value by trigger expression and number of function Return value : upon successful completion return SUCCEED otherwise FAIL