After a string of issues, our distributor and Esri support recommended we reinstall ArcGIS Monitor and reconnect it to the existing Postgres database, which we've done.
However, because it was offline for several weeks, all the ArcGIS Monitor Agents were disconnected, including the "primary" one running with ArcGIS Monitor Server. I've reconnected the satellite agents but there appears to be no mechanism to reconnect the primary agent.
How should I go about reconnecting the primary agent?
A couple questions for you:
Josh
Hi @GeoJosh,
Yes, it's running as the same account as before.
Our config store was corrupted so it was easier to reinstall. I do have a copy of that, though.
Hi @GeoJosh, any ideas? I'm guessing I need to manually fix the agent's API key somewhere in the config store and/or Postgres DB.
Our config store was corrupted so it was easier to reinstall. I do have a copy of that, though.
If you have a copy of the config-store, you should be able to restore it to "C:\Users\<MonitorServiceUser>\AppData\Local\ESRI\ArcGISMonitor\config-store-server". The important piece in the config store that needs to be restored in this situation is the AGENT_TOKEN, which is used to authenticate the agent with server.
Josh
Thanks @GeoJosh.
I'd already attempted to copy the AGENT_* lines from the old .env (as below) but, after restarts, this hasn't worked.
AGENT_DESCRIPTION=
AGENT_ID=1
AGENT_NAME=ARCGISMONITOR
AGENT_TOKEN=xxxxxxxxxxxxxxxx
AGENT_URL=http://localhost:30082/arcgis
What can I try next?
It appears that this issue requires deeper troubleshooting than what we can do over the forums. Can you please open a support ticket for this issue?
Josh