Not Seeing Agent Service Webservice Results

Document ID : KB000093094
Last Modified Date : 27/04/2018
Show Technical Document Details
Question:

We are trying to use the agent service to generate a list of APM agents. This web service worked prior to our upgrade to 10.5.2. I have reviewed configs and logs but do not see any cause for the issue

Why is this? The Documentation says it should work. See https://docops.ca.com/ca-apm/10-5/en/api-reference/apm-transaction-model-apis/polling-web-services-supported/agent-service
Environment:
  APM 10.5. and later.
Answer:
Data not reported is probably related to a change when agent data processing was changed from legacy appmap data to transaction trace processing. 
As a result of this the agent information is not stored into apm_agent table in database and thus webservices for querying agents do not return anything. 
Other webservices calls takes data from different source, e.g. smartstor, so they still do work. 

In versions 10.1 - 10.5.2 there was a switch to use old way of processing. 
introscope.apm.appmap.legacy.data.source 

I tried it with this property set and then it was reporting agents correctly. But turning this on has some consequences as it will disable all the transaction trace processing introduced in 10.1 and improved in later versions, so data might be different. 
Also, this property and its functionality is completely removed in 10.7. 

There are also other options how to get agents: 
- 10.7 is able to show infrastructure layer on the map including agents. 
- there is also CLW (commandline workstation) tool that can be used to get list of agents.