Splunk AppDynamics

Getting started - agent not responding

CommunityUser
Splunk Employee
Splunk Employee

I went through the setup instructions for Tomcat and added the relevant lines to the setenv.sh script, and (hoorah!) I got the following when restarting Tomcat;

Install Directory resolved to[/home/ubuntu/appagent]
[Thread-0] Tue Jun 20 15:01:43 UTC 2017[DEBUG]: AgentInstallManager - Full Agent Registration Info Resolver is running
[Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using selfService [true]
[Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using selfService [true]
[Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using application name [null]
[Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using tier name [null]
[Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using node name [null]
log4j:WARN No appenders could be found for logger (com.singularity.SelfServiceNameResolver).
log4j:WARN Please initialize the log4j system properly.
[Thread-0] Tue Jun 20 15:01:43 UTC 2017[DEBUG]: AgentInstallManager - Full Agent Registration Info Resolver finished running
[Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: AgentInstallManager - Agent runtime directory set to [/home/ubuntu/appagent/ver4.3.1.0]
[Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: AgentInstallManager - Agent node directory set to [qa-003]
[Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: JavaAgent - Using Java Agent Version [Server Agent v4.3.1.0 GA #15057 r867530f5c748a55ce75851534ad0942226c06d8b 45-4.3.1.next-analy
tics]
[Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: JavaAgent - Running IBM Java Agent [No]
[Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: JavaAgent - Java Agent Directory [/home/ubuntu/appagent/ver4.3.1.0]
[Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: JavaAgent - Java Agent AppAgent directory [/home/ubuntu/appagent/ver4.3.1.0]
[Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: JavaAgent - ####################################################################################
[Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: JavaAgent - Java Agent Directory [/home/ubuntu/appagent/ver4.3.1.0]
[Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: JavaAgent - Java Agent AppAgent directory [/home/ubuntu/appagent/ver4.3.1.0]
[Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: JavaAgent - Using Java Agent Version [Server Agent v4.3.1.0 GA #15057 r867530f5c748a55ce75851534ad0942226c06d8b 45-4.3.1.next-analy
tics]
[Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: JavaAgent - All agent classes have been pre-loaded
[Thread-0] Tue Jun 20 15:01:43 UTC 2017[DEBUG]: JavaAgent - Using Java Version [JAVA_18] for AppDynamics Java Agent
Running obfuscated agent
Started AppDynamics Java Agent Successfully.
[Thread-0] Tue Jun 20 15:01:47 UTC 2017[INFO]: JavaAgent - Started AppDynamics Java Agent Successfully.

but "Waiting for Connection..." never actually ends, and I can't see anything else related in the Tomcat logs. Help?

Labels (1)
0 Karma

Rajesh_Putta
Communicator

Hi

Please pass application, tier and node name as it looks like they were not configured. Please pass them in controller-info.xml file located under <agent-install-dir>/conf folder

Log Snippet for reference

[Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using application name [null]
[Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using tier name [null]
[Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using node name [null]
l

Please refer

https://docs.appdynamics.com/display/PRO43/Install+the+Java+Agent

https://docs.appdynamics.com/display/PRO43/Java+Agent+Configuration+Properties

Thanks

Rajesh

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Thanks for the reply! Can I suggest you add this to the getting started wizard as a tip? It might save you some extra questions in the forums 🙂 I'll try it and get back to you.


@Rajesh.Putta wrote:

Hi

Please pass application, tier and node name as it looks like they were not configured. Please pass them in controller-info.xml file located under <agent-install-dir>/conf folder

Log Snippet for reference

[Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using application name [null]
[Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using tier name [null]
[Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using node name [null]
l

Please refer

https://docs.appdynamics.com/display/PRO43/Install+the+Java+Agent

https://docs.appdynamics.com/display/PRO43/Java+Agent+Configuration+Properties

Thanks

Rajesh



@Rajesh.Putta wrote:

Hi

Please pass application, tier and node name as it looks like they were not configured. Please pass them in controller-info.xml file located under <agent-install-dir>/conf folder

Log Snippet for reference

[Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using application name [null]
[Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using tier name [null]
[Thread-0] Tue Jun 20 15:01:43 UTC 2017[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using node name [null]
l

Please refer

https://docs.appdynamics.com/display/PRO43/Install+the+Java+Agent

https://docs.appdynamics.com/display/PRO43/Java+Agent+Configuration+Properties

Thanks

Rajesh


0 Karma

Rajesh_Putta
Communicator

Hi Matt,

Thanks for the suggestions. We will refer your suggestions to docs get them update. Also we will wait for you to get back to us with your observations post those suggested changes.

Thanks

Rajesh

0 Karma

Arun_Dasetty
Super Champion

Hi Matt,

did you got chance to follow our agent SME suggestions, if yes, please share logs if this is still an issue?

0 Karma

Rajesh_Putta
Communicator

Hi 

We hope you have followed the suggestions as per docs link here

https://docs.appdynamics.com/display/PRO43/Apache+Tomcat+Startup+Settings

If yes, and still you face the problem, please send us details as listed here

1)Please let us know the exact problem you experience(Is application not starting or Is agent not reporting to controller or any other)

2)tomcat startup scripts wherever you have added java agent settings

3) Tomcat version

4) Zipped agent logs located under <agent-install-dir>/logs folder

Thanks

Rajesh

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Instructions followed, you'll be glad to hear.

1) the agent is reporting to the controller - the getting started stays at "Waiting for connection", and doesn't go any further.

2) CATALINA_OPTS="$CATALINA_OPTS -javaagent:/home/ubuntu/appagent/javaagent.jar"

3) Tomcat version is

8.0.32-1ubuntu1.4

4) there is no logs directory, so no logs to send - the only thing I can send is the catalina.out containing the app agent information, which I included in the original, but here it is again (there is nothing else in the logs associated):

Full Agent Registration Info Resolver using selfService [true]
Full Agent Registration Info Resolver using selfService [true]
Full Agent Registration Info Resolver using application name [null]
Full Agent Registration Info Resolver using tier name [unknown]
Full Agent Registration Info Resolver using node name [null]
Install Directory resolved to[/home/ubuntu/appagent]
[Thread-0] Thu Jun 22 11:00:57 UTC 2017[DEBUG]: AgentInstallManager - Full Agent Registration Info Resolver is running
[Thread-0] Thu Jun 22 11:00:57 UTC 2017[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using selfService [true]
[Thread-0] Thu Jun 22 11:00:57 UTC 2017[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using selfService [true]
[Thread-0] Thu Jun 22 11:00:57 UTC 2017[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using application name [null]
[Thread-0] Thu Jun 22 11:00:57 UTC 2017[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using tier name [null]
[Thread-0] Thu Jun 22 11:00:57 UTC 2017[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using node name [null]
log4j:WARN No appenders could be found for logger (com.singularity.SelfServiceNameResolver).
log4j:WARN Please initialize the log4j system properly.
[Thread-0] Thu Jun 22 11:00:57 UTC 2017[DEBUG]: AgentInstallManager - Full Agent Registration Info Resolver finished running
[Thread-0] Thu Jun 22 11:00:57 UTC 2017[INFO]: AgentInstallManager - Agent runtime directory set to [/home/ubuntu/appagent/ver4.3.1.0]
[Thread-0] Thu Jun 22 11:00:57 UTC 2017[INFO]: AgentInstallManager - Agent node directory set to [qa-003]
[Thread-0] Thu Jun 22 11:00:57 UTC 2017[INFO]: JavaAgent - Using Java Agent Version [Server Agent v4.3.1.0 GA #15057 r867530f5c748a55ce75851534ad0942226c06d8b 45-4.3.1.next-analytics]
[Thread-0] Thu Jun 22 11:00:57 UTC 2017[INFO]: JavaAgent - Running IBM Java Agent [No]
[Thread-0] Thu Jun 22 11:00:57 UTC 2017[INFO]: JavaAgent - Java Agent Directory [/home/ubuntu/appagent/ver4.3.1.0]
[Thread-0] Thu Jun 22 11:00:57 UTC 2017[INFO]: JavaAgent - Java Agent AppAgent directory [/home/ubuntu/appagent/ver4.3.1.0]
[Thread-0] Thu Jun 22 11:00:57 UTC 2017[INFO]: JavaAgent - ####################################################################################
[Thread-0] Thu Jun 22 11:00:57 UTC 2017[INFO]: JavaAgent - Java Agent Directory [/home/ubuntu/appagent/ver4.3.1.0]
[Thread-0] Thu Jun 22 11:00:57 UTC 2017[INFO]: JavaAgent - Java Agent AppAgent directory [/home/ubuntu/appagent/ver4.3.1.0]
[Thread-0] Thu Jun 22 11:00:57 UTC 2017[INFO]: JavaAgent - Using Java Agent Version [Server Agent v4.3.1.0 GA #15057 r867530f5c748a55ce75851534ad0942226c06d8b 45-4.3.1.next-analytics]
[Thread-0] Thu Jun 22 11:00:57 UTC 2017[INFO]: JavaAgent - All agent classes have been pre-loaded
[Thread-0] Thu Jun 22 11:00:57 UTC 2017[DEBUG]: JavaAgent - Using Java Version [JAVA_18] for AppDynamics Java Agent
Running obfuscated agent
Started AppDynamics Java Agent Successfully.
[Thread-0] Thu Jun 22 11:01:01 UTC 2017[INFO]: JavaAgent - Started AppDynamics Java Agent Successfully.
0 Karma
Get Updates on the Splunk Community!

Announcing the Expansion of the Splunk Academic Alliance Program

The Splunk Community is more than just an online forum — it’s a network of passionate users, administrators, ...

Learn Splunk Insider Insights, Do More With Gen AI, & Find 20+ New Use Cases You Can ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Buttercup Games: Further Dashboarding Techniques (Part 7)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...