AppD Archive

Can Anyone please how to Use app dynamic pro trial?

CommunityUser
Splunk Employee
Splunk Employee

[Thread-0] 07 Nov 2013 11:42:10,992 ERROR JavaAgent - *******************
[Thread-0] 07 Nov 2013 11:42:10,992 ERROR JavaAgent - * Unable to determine Tier Name or Node Name. Java Agent disabled
[Thread-0] 07 Nov 2013 11:42:10,992 ERROR JavaAgent - *******************

Tags (1)
0 Karma
1 Solution

CommunityUser
Splunk Employee
Splunk Employee

Thanks A lot...

Its working fine Now....In case any issue with appdynamic I'll contact you...Thanks for your valuable updates and time spent for tracking this issue...

Thanks & Regards,

Sudhakaran Rajendran

View solution in original post

0 Karma

Arun_Dasetty
Super Champion

Hi,

From the error stack trace it seems you have not provided <tier-name> and <node-name> in <agent_install_dir>/conf/controller-info.xml, we request you to provide tier and node name details and restart the jvm with agent configured and see if that helps:

Also we request you to visit the following docs once for steps to install agent:

http://docs.appdynamics.com/display/PRO13S/Install+the+App+Agent+for+Java
http://docs.appdynamics.com/display/PRO13S/Self-Service+Install+-+App+Agents+for+Java

Let us know how it goes.

Thanks,

Arun

CommunityUser
Splunk Employee
Splunk Employee

This is my configuration file..Please Help me out of the issue

0 Karma

Arun_Dasetty
Super Champion

Hi,

We see that you have not provided the value as expected, as we see the following:

export JAVA_OPTS="$JAVA_OPTS -javaagent:/usr/local/apache-tomcat-clixico/javaagent.jar=uniqueID=<myapp>"

after update it should like in catalina file as follows :
export JAVA_OPTS="$JAVA_OPTS -javaagent:/usr/local/apache-tomcat-clixico/javaagent.jar=uniqueID=myServerNode1test"

save the changes , i removed the special chars ("<" and ">") after uniqueId paramater and restart the tomcat server/jvm, or you can replace the attached file as well with above changes updated. now you should see the agent regsitered fine at controller UI as the controller-host param provided.

Let us know if that information helps.

Thanks,

Arun

CommunityUser
Splunk Employee
Splunk Employee

Thanks for your reply..

But still I'm not getting the application on my controller page...Can you please look at my log file that i attached with this conversation???

Please Help if you find anything....

0 Karma

Arun_Dasetty
Super Champion

Hi,

Thanks for the error stack trace, we see the xml file is malformed as we see the addition <controller-info> element in controller-info.xml file hence we see the error in provided logs:
==================
com.appdynamics.org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.

===================

and we see additionally the following xml segment which is root cause of the xml parsing for controller-info.xml file, we can see multiple <controller-info> tags, but agent is expected to have only one <controller-info> tag:
===============

<controller-info>

<controller-info>
    <controller-host>sigmainfosolutionsltd.saas.appdynamics.com</controller-host>
        <controller-port>8090</controller-port>
            <application-name>ACMEOnline</application-name>
                <tier-name>InventoryTier</tier-name>
                    <node-name>Inventory1</node-name>

=========================

Can you remove the above lines Or you can stop server/jvm and replace the controller-info.xml file under <agent_install_dir>/conf path (Ex: /usr/local/apache-tomcat-clixico/conf ) with the attached file and restart the server with agent configured, we expect that this should solve the issue for sure.

Let us know how it goes

Thanks,

Arun

0 Karma

Arun_Dasetty
Super Champion

Hi,

Let us know if the above suggested changes had helped to resolve the issue, we will be glad to assist you further if you still face the issue.

Thanks,

Arun

CommunityUser
Splunk Employee
Splunk Employee

thanks for your valuable updates 

Still I'm not getting my application on my controller page...

I followed the steps as you mentioned on above tag..Here I attach my Controller-info-xml file ,catalina.sh, & agent.log for your refernce

0 Karma

Arun_Dasetty
Super Champion

Hi,

Thanks for the update, from provide file "controllerinfo.txt" it is clearly evident that you have not applied the suggested changes that we mentioned in earlier post regarding duplicate controller-info xml element in controller-info.xml file at <Agent_dir>/conf (Ex: /usr/local/appdynamicpro/AppserverAgent/conf/controller-info.xml) file :

======================

 <force-agent-registration>false</force-agent-registration>

</controller-info>
   <controller-host>sigmainfosolutionsltd.saas.appdynamics.com</controller-host>
   <controller-port>8090</controller-port>
   <application-name>ACMEOnline</application-name>
   <tier-name>InventoryTier</tier-name>
   <node-name>Inventory1</node-name>
</controller-info>


===============

Please make sure there are no duplicate <controller-info> or </controller-info> elements in controller-info.xml file as we see above in your contorller-info.xml file, or replace the content of attached file in complete controller-info.xml file

the updated content of controller-info.xml file should look like:

==================
<?xml version="1.0" encoding="UTF-8"?>
<controller-info>
      <controller-host>sigmainfosolutionsltd.saas.appdynamics.com</controller-host>
    <controller-port>443</controller-port>
    <controller-ssl-enabled>true</controller-ssl-enabled>
    <application-name>ACMEOnline</application-name>
    <tier-name>InventoryTier</tier-name>
    <node-name>Inventory1</node-name>
    <agent-runtime-dir></agent-runtime-dir>
    <enable-orchestration>false</enable-orchestration>
    <account-name>SigmaInfosolutionsltd</account-name>
    <account-access-key><provide access key value></account-access-key>
    <force-agent-registration>false</force-agent-registration>                     
</controller-info>

============

and restart the jvm after above changes, if you have provide <tier-name> and <node-name> details in controller-info.xml file you need require to provide =uniqueId param in -javaagent script in catalina script file

Thanks,

Arun

CommunityUser
Splunk Employee
Splunk Employee

Thanks A lot...

Its working fine Now....In case any issue with appdynamic I'll contact you...Thanks for your valuable updates and time spent for tracking this issue...

Thanks & Regards,

Sudhakaran Rajendran

0 Karma
Get Updates on the Splunk Community!

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to Officially Supported Splunk ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI! Discover how Splunk’s agentic AI ...