zabbix-agent2/src/zabbix_server/alerter/alerter_protocol.c
/******************************************************************************
 *                                                                            *
 * Function: zbx_alerter_get_diag_stats                                       *
 *                                                                            *
 * Purpose: get alerter manager diagnostic statistics                         *
 *                                                                            *
 ******************************************************************************/
zbx_alerter_get_diag_stats

Purpose: get alerter manager diagnostic statistics
zbx_alerter_get_diag_stats Purpose : get alerter manager diagnostic statistics
int	zbx_alerter_get_diag_stats(zbx_uint64_t *alerts_num, char **error)
{
	unsigned char	*result;
	if (SUCCEED != zbx_ipc_async_exchange(ZBX_IPC_SERVICE_ALERTER, ZBX_IPC_ALERTER_DIAG_STATS, SEC_PER_MIN, NULL, 0,
			&result, error))
	{
		return FAIL;
	}
	zbx_alerter_deserialize_diag_stats(result, alerts_num);
	zbx_free(result);
	return SUCCEED;
}
int zbx_alerter_get_diag_stats ( zbx_uint64_t * alerts_num , char * * error ) { unsigned char * result ; if ( SUCCEED != zbx_ipc_async_exchange ( ZBX_IPC_SERVICE_ALERTER , ZBX_IPC_ALERTER_DIAG_STATS , SEC_PER_MIN , NULL , 0 , & result , error ) ) { return FAIL ; } zbx_alerter_deserialize_diag_stats ( result , alerts_num ) ; zbx_free ( result ) ; return SUCCEED ; }
Function: zbx_alerter_get_diag_stats                                       
                                                                            
 Purpose: get alerter manager diagnostic statistics
Function : zbx_alerter_get_diag_stats Purpose : get alerter manager diagnostic statistics