Select to view content in your preferred language

Agent websocket topic not found error when registering additional components

1234
6
02-08-2023 10:49 AM
Justin_Greco
Frequent Contributor

I am trying out the new ArcGIS Monitor.  I was able to get it installed, connected to a Postgres DB, and added a server component.  However, I am having issues adding additional components.  I get an "Communication timeout between Agent and Server" error, followed by "Agent websocket topic not found.  Check agent connection properties".  If I go to the Agent tab, my agent says that its disconnected.  Restarting the Windows service gets the agent to connect again, but the same issue happens next time I go to add a component.

Also, the component I did register successfully doesn't show any metrics.

This is an error that I found in the logs:

Websocket closed; reason: {"channel":{"name":"agentsync:*","_onConnect":"AgentSyncController","_channelControllerListeners":[{"eventName":"close","method":"onClose"},{"eventName":"error","method":"onError"},{"eventName":"ping","method":"onPing"},{"eventName":"message","method":"onMessage"}],"subscriptions":{},"_middleware":["auth:agent"]},"emitter":{}}

0 Kudos
6 Replies
DerekLaw
Esri Esteemed Contributor

Hi @Justin_Greco

However, I am having issues adding additional components.

What is the component type that you're trying to add that's causing this issue? What release version is it? Is the component located in the same network domain or somewhere else? 

 I get an "Communication timeout between Agent and Server" error, followed by "Agent websocket topic not found.  Check agent connection properties".

Just to clarify: did you install ArcGIS Monitor Agent somewhere? (In addition to ArcGIS Monitor Server and the ArcGIS Monitor database)

Thanks,

 

 

0 Kudos
Justin_Greco
Frequent Contributor

Hi Derek,

I installed everything on the same server (Monitor, Agent, and a Postgres DB).  The component type that is causing the issue is the a Linux Host.  Our Linux servers are at RHEL8 and we have SSH enabled and the account I am using can SSH.  We didn't have any issues connecting to these hosts at 10.8.1.  I currently have everything uninstalled and have requested a fresh Windows 2019 server.

1) Register the Linux host (enter FQDN and the credentials for the account that can SSH)

2) It shows up under the Components

3) The status remains Unknown and says that no alerts have been set up

4) No metrics are listed under the metrics tab

5) It causes the agent to disconnected, requiring the window service to be restarted.

6) Leaving it registered results in the agent disconnecting again.

0 Kudos
DerekLaw
Esri Esteemed Contributor

Hi @Justin_Greco,

I installed everything on the same server (Monitor, Agent, and a Postgres DB).

You don't install ArcGIS Monitor (AM) Server and AM Agent on the same machine. Technically, you only need to install AM Server and AM Database to get Monitor running. You would install AM Agent separately on its own machine, only if you're monitoring resources in a different network domain.

I suspect  this is likely the cause of your issues.

Can you please just install AM Server and AM Database on your machine? 

Hope this helps,

 

0 Kudos
Justin_Greco
Frequent Contributor

Correction, I only installed AM Server and AM Database on the machine.  I did see where it said to install only AM Server or AM Agent.  I believe I have this all set up correctly, not sure if there is something I am missing permissions wise on the RHEL 8 server.  I also just had a fresh Windows 2019 server provisioned for the new version.  I am seeing the same issue here as well.

When I add register the Linux server, the Status is Unknown and says Alerting is disabled.  Then when I go to the Metrics tab, there are no metrics listed.  Then when I go to the Monitoring>Agents tab, it shows the agent for the server where AM Server is installed is disconnected. 

JustinGreco1_0-1676308446559.png

JustinGreco1_1-1676308491671.png

 

0 Kudos
DerekLaw
Esri Esteemed Contributor

Hi @Justin_Greco

To confirm, you've installed ArcGIS Monitor 2023 on a Windows OS machine. As far as you know, it is working properly, can you please confirm? Perhaps try registering another component?

Then, you attempt to register a Linux host machine with Monitor,

I believe I have this all set up correctly, not sure if there is something I am missing permissions wise on the RHEL 8 server. 

Please check that you've met all the requirements here, Register Linux hosts 

Hope this helps,

0 Kudos
ABatchelor
Emerging Contributor

Hello, was there any fix for this issue? I am experiencing a nearly identical issue when registering Linux hosts. Thanks!

0 Kudos