zabbix-agent2/src/zabbix_server/alerter/alert_manager.c
/******************************************************************************
 *                                                                            *
 * Function: am_process_diag_stats                                            *
 *                                                                            *
 * Purpose: process diagnostic statistics request                             *
 *                                                                            *
 ******************************************************************************/
am_process_diag_stats

Purpose: process diagnostic statistics request
am_process_diag_stats Purpose : process diagnostic statistics request
static void	am_process_diag_stats(zbx_am_t *manager, zbx_ipc_client_t *client)
{
	unsigned char	*data;
	zbx_uint32_t	data_len;
	data_len = zbx_alerter_serialize_diag_stats(&data, manager->alerts_num);
	zbx_ipc_client_send(client, ZBX_IPC_ALERTER_DIAG_STATS_RESULT, data, data_len);
	zbx_free(data);
}
static void am_process_diag_stats ( zbx_am_t * manager , zbx_ipc_client_t * client ) { unsigned char * data ; zbx_uint32_t data_len ; data_len = zbx_alerter_serialize_diag_stats ( & data , manager -> alerts_num ) ; zbx_ipc_client_send ( client , ZBX_IPC_ALERTER_DIAG_STATS_RESULT , data , data_len ) ; zbx_free ( data ) ; }
Function: am_process_diag_stats                                            
                                                                            
 Purpose: process diagnostic statistics request
Function : am_process_diag_stats Purpose : process diagnostic statistics request