zabbix-agent2/src/zabbix_server/server.c
/******************************************************************************
 *                                                                            *
 * Function: server_update_ha_status                                          *
 *                                                                            *
 * Purpose: check for queued status message and update HA status              *
 *                                                                            *
 ******************************************************************************/
server_update_ha_status

Purpose: check for queued status message and update HA status
server_update_ha_status Purpose : check for queued status message and update HA status
static int	server_update_ha_status(void)
{
	char	*error = NULL;
	if (SUCCEED != zbx_ha_recv_status(0, &ha_status, &error))
	{
		zabbix_log(LOG_LEVEL_CRIT, "cannot check HA manager status: %s", error);
		zbx_free(error);
		return FAIL;
	}
	return SUCCEED;
}
static int server_update_ha_status ( void ) { char * error = NULL ; if ( SUCCEED != zbx_ha_recv_status ( 0 , & ha_status , & error ) ) { zabbix_log ( LOG_LEVEL_CRIT , " " , error ) ; zbx_free ( error ) ; return FAIL ; } return SUCCEED ; }
Function: server_update_ha_status                                          
                                                                            
 Purpose: check for queued status message and update HA status
Function : server_update_ha_status Purpose : check for queued status message and update HA status