Trying to connect my omsagent to Azure; but the agent isn't listening on port 25226

Christopher Lambert 5 Reputation points
2023-08-30T15:03:37.0333333+00:00

I'm not able to get my Azure Linux VM to connect to my Log Analytics workspace so that I can receive my Fortinet logs.

I've purged and reinstalled the omsagent several times, as well as have reinstalled the CEF agent multiple times.

The troubleshooting steps will consistently say that the agent isn't listening on port 25226. But not really how to resolve it.

The security_events.conf is in the /etc/opt/microsoft/omsagent/workspaceID/conf/omsagent.d directory and does appear to have the correct information.

The items of note I've noticed is that the /opt/microsoft/omsagnet/bin/service_control is not present.

In the filepath; /etc/..../conf/ There is no omsagent.conf and I've seen on other troubleshooting boards that there should be.

The cef_troubleshooter also mentions that it can't access the /etc/opt/omi/conf/omsconfig since the file or directory is not present.

Unsure what steps to take next.

Resolved: Ended up being a version computability error.

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,363 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Christopher Lambert 5 Reputation points
    2023-09-03T17:03:15.8166667+00:00

    Vinodh247,

    I did not see that article, but I don't think it would have helped. Ultimately, it actually ended up being a compatibility error. The VM was created with Ubuntu 22? I think it was, however the agent was only good until Ubuntu 20. So got the sub owner to delete the VM and create one with Ubuntu 20, and was able to complete the install in a timely manner.

    I didn't think to update this, so that's my bad, but thank you for answering and providing more possible answers the next time it messes up.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.