zabbix-agent2/src/libs/zbxdbcache/dbconfig.c
/******************************************************************************
 *                                                                            *
 * Function: zbx_is_counted_in_item_queue                                     *
 *                                                                            *
 * Purpose: determine whether the given item type is counted in item queue    *
 *                                                                            *
 * Return value: SUCCEED if item is counted in the queue, FAIL otherwise      *
 *                                                                            *
 ******************************************************************************/
zbx_is_counted_in_item_queue

Purpose: determine whether the given item type is counted in item queue

Return value: SUCCEED if item is counted in the queue, FAIL otherwise
zbx_is_counted_in_item_queue Purpose : determine whether the given item type is counted in item queue Return value : SUCCEED if item is counted in the queue FAIL otherwise
int	zbx_is_counted_in_item_queue(unsigned char type, const char *key)
{
	switch (type)
	{
		case ITEM_TYPE_ZABBIX_ACTIVE:
			if (0 == strncmp(key, "log[", 4) ||
					0 == strncmp(key, "logrt[", 6) ||
					0 == strncmp(key, "eventlog[", 9) ||
					0 == strncmp(key, "mqtt.get[", ZBX_CONST_STRLEN("mqtt.get[")))
			{
				return FAIL;
			}
			break;
		case ITEM_TYPE_TRAPPER:
		case ITEM_TYPE_DEPENDENT:
		case ITEM_TYPE_HTTPTEST:
		case ITEM_TYPE_SNMPTRAP:
			return FAIL;
	}
	return SUCCEED;
}
int zbx_is_counted_in_item_queue ( unsigned char type , const char * key ) { switch ( type ) { case ITEM_TYPE_ZABBIX_ACTIVE : if ( 0 == strncmp ( key , " " , 4 ) || 0 == strncmp ( key , " " , 6 ) || 0 == strncmp ( key , " " , 9 ) || 0 == strncmp ( key , " " , ZBX_CONST_STRLEN ( " " ) ) ) { return FAIL ; } break ; case ITEM_TYPE_TRAPPER : case ITEM_TYPE_DEPENDENT : case ITEM_TYPE_HTTPTEST : case ITEM_TYPE_SNMPTRAP : return FAIL ; } return SUCCEED ; }
Function: zbx_is_counted_in_item_queue                                     
                                                                            
 Purpose: determine whether the given item type is counted in item queue    
                                                                            
 Return value: SUCCEED if item is counted in the queue, FAIL otherwise
Function : zbx_is_counted_in_item_queue Purpose : determine whether the given item type is counted in item queue Return value : SUCCEED if item is counted in the queue FAIL otherwise