SOLVED

OMS Gateway error.

%3CLINGO-SUB%20id%3D%22lingo-sub-2320731%22%20slang%3D%22en-US%22%3EOMS%20Gateway%20error.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2320731%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20have%20setup%20some%20test%20machines%20and%20have%20OMS%20Gateway%20sitting%20on%20server%202019.%20%C2%A3%20have%203%20test%20clients.%3C%2FP%3E%3CP%3EI%20rebooted%20the%202019%20box%20the%20other%20day%20and%20now%20its%20failing%20to%20connect%20-%20Any%20ideas%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%222021-05-04%2009_19_38-UK4MDATPTEST01%20-%20Remote%20Desktop%20Connection.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F277780i1A159FFC711A5B97%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%222021-05-04%2009_19_38-UK4MDATPTEST01%20-%20Remote%20Desktop%20Connection.png%22%20alt%3D%222021-05-04%2009_19_38-UK4MDATPTEST01%20-%20Remote%20Desktop%20Connection.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EI%20reinstalled%20the%20OMS%20gateway%20and%20these%20errors%20came%20up%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%222021-05-04%2011_06_41-UK4MDATPTEST01%20-%20Remote%20Desktop%20Connection.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F277807iDDF00E853161B825%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%222021-05-04%2011_06_41-UK4MDATPTEST01%20-%20Remote%20Desktop%20Connection.png%22%20alt%3D%222021-05-04%2011_06_41-UK4MDATPTEST01%20-%20Remote%20Desktop%20Connection.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2324147%22%20slang%3D%22en-US%22%3ERe%3A%20OMS%20Gateway%20error.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2324147%22%20slang%3D%22en-US%22%3EHi%20Joe.%3CBR%20%2F%3EAre%20machines%20on-prem%2C%20azure%3F%3CBR%20%2F%3EAre%20they%20domain%20joined%3F%20Sometimes%20if%20you%20allowed%20outbound%20traffic%20to%20specific%20windows%20firewall%20profile%2C%20the%20default%20profile%20might%20change.%3CBR%20%2F%3EDid%20you%20tried%20to%20run%20TestCloudConnectivity%20tool%3F%3CBR%20%2F%3EThe%20tool%20is%20installed%20by%20default%20with%20the%20agent%20in%20the%20folder%20%25SystemRoot%25%5CProgram%20Files%5CMicrosoft%20Monitoring%20Agent%5CAgent.%20From%20an%20elevated%20command%20prompt%2C%20navigate%20to%20the%20folder%20and%20run%20the%20tool.%20The%20tool%20returns%20the%20results%20and%20highlights%20where%20the%20test%20failed%20(for%20example%2C%20if%20it%20was%20related%20to%20a%20particular%20port%2FURL%20that%20was%20blocked).%3CBR%20%2F%3ERecheck%20if%20your%20workspace%20key%20has%20been%20regenerated%20recently.%3CBR%20%2F%3EYou%20need%20to%20install%20the%20Microsoft%20Monitoring%20Agent%20on%20the%20Log%20Analytics%20Gateway%20and%20configure%20it%20with%20the%20same%20log%20analytics%20workspace%20that%20you%20will%20configure%20on%20the%20data%20collection%20machine.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2325018%22%20slang%3D%22en-US%22%3ERe%3A%20OMS%20Gateway%20error.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2325018%22%20slang%3D%22en-US%22%3EHi%2C%20thanks%20for%20the%20repsonse.%20All%20servers%20are%20on%20prem.%20The%20gateway%20box%20is%20Server%202019%20so%20doesnt%20have%20the%20Management%20Agent%20installed%2C%20I%20just%20ran%20the%20script%20from%20azure%20that%20turns%20it%20on%20(I%20believe%20its%20already%20has%20the%20functionality.%20)%20So%20it%20was%20working%20for%20a%20bit%2C%20then%20failed%20for%20some%20reason.%20I%20came%20to%20a%20loose%20end%20and%20installed%20the%20management%20agent%20and%20it%20works....%20Bizarre.%3C%2FLINGO-BODY%3E
New Contributor

We have setup some test machines and have OMS Gateway sitting on server 2019. £ have 3 test clients.

I rebooted the 2019 box the other day and now its failing to connect - Any ideas ?

 

 

2021-05-04 09_19_38-UK4MDATPTEST01 - Remote Desktop Connection.png

I reinstalled the OMS gateway and these errors came up

2021-05-04 11_06_41-UK4MDATPTEST01 - Remote Desktop Connection.png

 

3 Replies
Hi Joe.
Are machines on-prem, azure?
Are they domain joined? Sometimes if you allowed outbound traffic to specific windows firewall profile, the default profile might change.
Did you tried to run TestCloudConnectivity tool?
The tool is installed by default with the agent in the folder %SystemRoot%\Program Files\Microsoft Monitoring Agent\Agent. From an elevated command prompt, navigate to the folder and run the tool. The tool returns the results and highlights where the test failed (for example, if it was related to a particular port/URL that was blocked).
Recheck if your workspace key has been regenerated recently.
You need to install the Microsoft Monitoring Agent on the Log Analytics Gateway and configure it with the same log analytics workspace that you will configure on the data collection machine.

Hi, thanks for the repsonse. All servers are on prem. The gateway box is Server 2019 so doesnt have the Management Agent installed, I just ran the script from azure that turns it on (I believe its already has the functionality. ) So it was working for a bit, then failed for some reason. I came to a loose end and installed the management agent and it works.... Bizarre.
best response confirmed by JoeShmo980 (New Contributor)
Solution

@JoeShmo980 
At least by documentation its required on the following notes:

 
Note 1 - URL 1
The computer that runs the Log Analytics gateway requires the Log Analytics Windows agent to identify the service endpoints that the gateway needs to communicate with. The agent also needs to direct the gateway to report to the same workspaces that the agents or Operations Manager management group behind the gateway are configured with. This configuration allows the gateway and the agent to communicate with their assigned workspace.
Note 2 - URL 2

It is required to install the Microsoft Monitoring Agent on the Log Analytics Gateway and configure it with the same log analytics workspace that you will configure on the data collection machine.

Sometimes without all the pre-requirements stuff works when it shouldn't :lol: