AppD Archive

no agents connected

CommunityUser
Splunk Employee
Splunk Employee

Hi,

I am new bee for this tool.

I have done with viewer and its done.

i am not able to set up with agent in tomcat 7.

i have configured in catelina.bat(for windows),but it does not work.I have tried with start.bat also, but i am getting same results.

myconfiguration as follows

if "%1"=="stop" goto skip_agent
set JAVA_OPTS=%JAVA_OPTS% -javaagent:"D:\AppDynamicsLite\javaagent.jar"
:skip_agent
 
 

thanks,

sivaji.b

0 Karma

Arun_Dasetty
Super Champion

Hi Sivaji,

Thanks for writing in to appsphere community forum. We understood you have installed lite viewer and you are able to access the viewer at http://<host>:8990/ in browser, and you have provide executable permissions for AppServerAgentLite directory and have configured lite agent on tomcat server as per docs, but could not see the agent at viewer UI even after browser refresh, let us know if any disconnect.

Can you please try the following and provide the following logs to debug the issue better:
- By default lite agent assumes that viewer is running in the same machine, let us know whether you are running viewer on machine1 and liteagent/tomcat on machine2, if viewer and agent are on different machines then please add the -D jvm property to tomcat startup script -Dappdynamics.viewer.host=<host-ip-of-liteviewer>  -Dappdynamics.viewer.port=<port-number-default 8990>

- If both agent and viewer are running in same machine please try refreshing the browser and restart tomcat and check whether agent is registered in viewer UI
- if the issue persists, send the screenshot from viewer UI depicting the issue
- startup script in which you have confiured lite agent  -javaagent entry

- zipped version of lite agent logs directory at <liteagent_dir>/logs

Do write back to us for further assistance,

Thanks,

Arun

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Hi,

Thanks for reply.

This is start script,which I have configured in catalina.bat

if "%1"=="stop" goto skip_agent

set JAVA_OPTS=%JAVA_OPTS% -javaagent:"D:\AppDynamicsLite\javaagent.jar"

:skip_agent

Then I got the following messages,which are in bellow

No agent is connected and No transaction is discovered.

And the following is the log message

[main] 27 Aug 2013 17:50:21,874  INFO [main] AgentHandlerServlet - *****************************************************************

[main] 27 Aug 2013 17:50:21,874  INFO [main] AgentHandlerServlet - Starting  ....AppDynamics Lite Viewer 2.1.1 GA Build Date 2012-08-05 21:13:55

[main] 27 Aug 2013 17:50:22,074  INFO [main] o - Read user registration. Registration complete: [true]

[main] 27 Aug 2013 17:50:22,114  INFO [main] LiteAlertManager - Initialized Data Directory [D:\AppDynamicsLite]

[main] 27 Aug 2013 17:50:22,114  INFO [main] LiteAlertManager - Creating alert: Default Errors/min. Alert

[main] 27 Aug 2013 17:50:22,114  INFO [main] LiteAlertManager - Creating alert: Default ART Alert

[main] 27 Aug 2013 17:50:22,114  INFO [main] LiteAlertManager - Alerts already exist or were created in the past; defaults will not be created.

[main] 27 Aug 2013 17:50:22,114  INFO [main] DirectoryResolver - Deleting directory [D:\AppDynamicsLite\data]

0 Karma

Arun_Dasetty
Super Champion

Hi,

Thanks for the update, We see disconnect here, what you have provided is ltieviewer logs(refer attached screenshot for clarity liteviewer and lite agent directory) we request you to go through the following docs once and check how it goes

refer docs: http://litedocs.appdynamics.com/display/ADLite/Get+Started+With+AppDynamics+Lite+for+Java

- if you still see the issue send the following information:
1) output of liteviewer console:
- cd <ltieviewer_dir>/
- java -jar adlite-viewer.jar > viewerlog.txt

2) output of tomcat (wiht liteagent configured) server console when starting server with agent:
- cd <tomcat_dir>/bin
- catalina.bat run > tomcatlog.txt

Send the viewerlog.txt and tomcatlog.txt and logs under <liteagent>logs directory to debug the issue better

Thanks,

Arun

0 Karma
Get Updates on the Splunk Community!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...