zabbix-agent2/src/libs/zbxdbcache/dbconfig.c
/******************************************************************************
 *                                                                            *
 * Function: DCget_count_stats_all                                            *
 *                                                                            *
 * Purpose: retrieves all internal metrics of the configuration cache         *
 *                                                                            *
 * Parameters: stats - [OUT] the configuration cache statistics               *
 *                                                                            *
 ******************************************************************************/
DCget_count_stats_all

Purpose: retrieves all internal metrics of the configuration cache

Parameters: stats - [OUT] the configuration cache statistics
DCget_count_stats_all Purpose : retrieves all internal metrics of the configuration cache Parameters : stats - [ OUT ] the configuration cache statistics
void	DCget_count_stats_all(zbx_config_cache_info_t *stats)
{
	WRLOCK_CACHE;
	dc_status_update();
	stats->hosts = config->status->hosts_monitored;
	stats->items = config->status->items_active_normal + config->status->items_active_notsupported;
	stats->items_unsupported = config->status->items_active_notsupported;
	stats->requiredperformance = config->status->required_performance;
	UNLOCK_CACHE;
}
void DCget_count_stats_all ( zbx_config_cache_info_t * stats ) { WRLOCK_CACHE ; dc_status_update ( ) ; stats -> hosts = config -> status -> hosts_monitored ; stats -> items = config -> status -> items_active_normal + config -> status -> items_active_notsupported ; stats -> items_unsupported = config -> status -> items_active_notsupported ; stats -> requiredperformance = config -> status -> required_performance ; UNLOCK_CACHE ; }
Function: DCget_count_stats_all                                            
                                                                            
 Purpose: retrieves all internal metrics of the configuration cache         
                                                                            
 Parameters: stats - [OUT] the configuration cache statistics
Function : DCget_count_stats_all Purpose : retrieves all internal metrics of the configuration cache Parameters : stats - [ OUT ] the configuration cache statistics