Elastic Agent already installed but not reporting to server

We have some servers in same environment with same Elastic Agent but not reporting to server .some are showing in Offline state and some are not showing anywhere .if we reinstall the Agent all the server will start showing in Fleet Agent with Healthy State. Any workaround for this .