SOLVED

OMS Agent troubleshooting

Brass Contributor

Hello,

 

Is there a way to troubleshooting the connectivity between OMS Agent(installed in linux server) and the workspace??

 

 

6 Replies
best response confirmed by Qusai_Ismail (Brass Contributor)
Thanks, we got it and run that script and have the following error

ALL ERRORS/WARNINGS ENCOUNTERED:
ERROR FOUND: file /etc/opt/microsoft/omsagent/conf/omsadmin.conf doesn't exist.

We tried with two different Linux versions : Centos 7.2 and RHEL 7.9
Same problem is encountered.

Did you ever resolve this?  I am having the same issue on Ubuntu 20.04 and have tried wiping and reinstalling the OMS agent using the Microsoft scripts without success.

I'm just purge the OMS-Agent
https://learn.microsoft.com/en-us/azure/azure-monitor/agents/agent-linux-troubleshoot#purge-and-rein...
and install it again, and it's successfully run.
Many thanks, that has got it working.
Yes, there are several ways to troubleshoot the connectivity between the OMS Agent (installed on a Linux server) and the Azure Log Analytics workspace: 1. Verify that the OMS Agent is running: You can check the status of the agent by running the command service omsagent status on the Linux server. This will tell you if the agent is currently running and if there are any errors. 2. Check the agent log files: The OMS Agent logs its activity in the /var/opt/microsoft/omsagent/<workspace_id>/log/omsagent.log file. You can check this file for any errors or warnings that might be preventing the agent from connecting to the workspace. 3. Verify that the workspace ID and key are correct: Make sure that the workspace ID and key that are specified in the /etc/opt/microsoft/omsagent/<workspace_id>/conf/omsagent.conf file are correct. You can verify this by checking the agent configuration in the Azure Log Analytics workspace 4. Check the firewall configuration: Make sure that the Linux server has the correct firewall rules to allow outbound traffic to the Azure Log Analytics service on ports 443 and 12000-12099. 5. Use telnet to test connectivity: Try to telnet to the Azure Log Analytics service endpoint on port 443 or 12000-12099. If you are able to connect, it indicates that your server is able to reach the service. 6. Verify that the OMS agent is able to reach the internet by doing nslookup on the domain 'dc.services.visualstudio.com' , this will ensure that the server can reach the necessary endpoint to send the logs. 7. Check if the OMS Agent is able to reach the necessary ports on Azure by doing telnet to port 443 and 12000-12099 on the Azure data center IP address(es) for your region. These steps should help you identify and resolve any connectivity issues between the OMS Agent and the Azure Log Analytics workspace. I recommend you to check the OMS Agent documentation for your specific version for more information on troubleshooting.
1 best response

Accepted Solutions