Issue With OMS Gateway

Srivastava, Nandan (CSCB RPS) 11 Reputation points
2020-08-05T17:15:11.553+00:00

Hi,

I am trying to install OMS agent on windows 2016 server. When I am using http proxy during agent installation then my server able to connect with workspace.
But when I am trying to deploy the same with OMS gateway, It's giving me authentication error.

2020-08-05T22:26:14.8138583+05:30 Debug: X-Request-ID : e767b5fc-f3b5-4188-bdfb-704bed957e9e
2020-08-05T22:26:15.0188580+05:30 Error: Exception reading server response, will use default response : System.Xml.XmlException: Root element is missing.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XPath.XPathDocument.LoadFromReader(XmlReader reader, XmlSpace space)
at Microsoft.MOMv3.Setup.MOMv3ManagedCAs.TryReadServerResponse(HttpWebResponse response)
2020-08-05T22:26:15.0188580+05:30 Debug: Failed to authenticate
2020-08-05T22:26:15.0438579+05:30 Debug:

* Trace Ended *

For OMS gateway I configured it on my separate VM which has connectivity to internet and VM where I am trying to install agent is isolated and in proxy setting providing OMS gateway details.

Help me out to fix this issue.

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,593 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Srivastava, Nandan (CSCB RPS) 11 Reputation points
    2020-08-10T10:03:47.553+00:00

    @bharathn-msft I am able to fixed this issue. Actually I got to know from windows event error.

    2020-08-07 20:34:43 [16] ERROR GatewayLogic - Target host (d982aa04-730a-441f-a059-e19097351d4d.oms.opinsights.azure.com) is forbidden. Destination server is not in allowed list. Ensure that the Microsoft Monitoring Agent on your Gateway box and the agents talking to the Gateway, are both connected to the same Log Analytics workspace.

    So what hint I got to know from above error that I need to install monitoring agent on OMS gateway as well with same id and key. If I see documentation part from Microsoft that part is completely missing and no where mention in OMS gateway deployment that I need to install agent on gateway as well. So when I install agent on gateway with same id and key after that able to install on other VM.


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.