Hi @Anonymous
Use the following query to view the heartbeats the agent was last successfully sent.
Heartbeat
| where Category == "Azure Monitor Agent"
| take 10
| order by TimeGenerated desc
But I suggest using the AgentTroubleshooter tool that's installed along the agent to help isolate the issue, see Use Azure Monitor Troubleshooter - Azure Monitor | Microsoft Learn. Obtaining the logs will better help determine what the underlying issue. Feel free to share the results in a comment below for better assistance.