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

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

Parameters:

Return value: upon successful completion return SUCCEED
otherwise FAIL
DBitem_lastvalue Purpose : retrieve item lastvalue by trigger expression and number of function Parameters : Return value : upon successful completion return SUCCEED otherwise FAIL
static int	DBitem_lastvalue(const DB_TRIGGER *trigger, char **lastvalue, int N_functionid, int raw)
{
	int		ret;
	zabbix_log(LOG_LEVEL_DEBUG, "In %s()", __func__);
	ret = DBitem_value(trigger, lastvalue, N_functionid, time(NULL), 999999999, raw);
	zabbix_log(LOG_LEVEL_DEBUG, "End of %s():%s", __func__, zbx_result_string(ret));
	return ret;
}
static int DBitem_lastvalue ( const DB_TRIGGER * trigger , char * * lastvalue , int N_functionid , int raw ) { int ret ; zabbix_log ( LOG_LEVEL_DEBUG , " " , __func__ ) ; ret = DBitem_value ( trigger , lastvalue , N_functionid , time ( NULL ) , 999999999 , raw ) ; zabbix_log ( LOG_LEVEL_DEBUG , " " , __func__ , zbx_result_string ( ret ) ) ; return ret ; }
Function: DBitem_lastvalue                                                 
                                                                            
 Purpose: retrieve item lastvalue by trigger expression                     
          and number of function                                            
                                                                            
 Parameters:                                                                
                                                                            
 Return value: upon successful completion return SUCCEED                    
               otherwise FAIL
Function : DBitem_lastvalue Purpose : retrieve item lastvalue by trigger expression and number of function Parameters : Return value : upon successful completion return SUCCEED otherwise FAIL