Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
12-06-2017 12:44 AM
Hello,
I've tried to instrument Windows services after reading documentation ., by adding below XML element into the config.xml in this path "(“%ProgramData%\AppDynamics\DotNetAgent\Config\config.xml”)"
***********
<windows-services>
<windows-service name="BasicWindowsService">
<tier name="Service Tier"/>
</windows-service>
<windows-service name="SecondWindowsService">
<tier name="Service Tier"/>
</windows-service>
</windows-services>
***********
After putiting this in config.xml and restarting the agents , im not able to collect any metrics related to that. Instead app agent went down . When i checked the logs i saw the below error information on it.
“2017-11-22 17:07:57.0690 12328 AppDynamics.Coordinator 1 9 Error ConfigurationManager Error reading the configuration file: There is an error in XML document (23, 5).
The 'windows-services' start tag on line 19 position 5 does not match the end tag of 'app-agents'. Line 23, position 5.”
Could someone please advise on this item. Thanks
Regards,
Soundarajan
12-06-2017 12:53 AM
Hi Soundrajan,
Instead of using windows service configuration, please configure the exectable running behing as stand alone application, as mentioned in following document.
You configuration should look like below:
<?xml version="1.0" encoding="utf-8"?> <appdynamics-agent xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <controller host="mycontroller.mycompany.com" port="8090" ssl="false"> <application name="My Business Application" /> </controller> <machine-agent /> <app-agents> <IIS> <applications /> </IIS> <standalone-applications> <standalone-application executable="MyWindowsService.exe"> <tier name="Windows Service Tier" /> </standalone-application> <standalone-application executable="MyStandaloneApp.exe"> <tier name="Standalone Tier" /> </standalone-application> </standalone-applications> </app-agents> </appdynamics-agent>
After modifying the config.xml, please restart the coordinator service and windows application sequentially and then apply the load. Once you can see your node registered, you need to create POCO entry points for business transactions as mentioned in document below:
https://docs.appdynamics.com/display/PRO43/POCO+Entry+Points
Regards,
Ashutosh
12-06-2017 02:04 AM
12-06-2017 02:08 AM
Hi Soundrajan,
Windows service will run a standalone executable internally, so you we recommended you to replace the windows service section with that of stand alone one. Windows service section was used with older agents. For latest agent we recommend you to use stand alone configuration.
Please let us know if that does not help.
Regards,
Ashutosh
12-06-2017 02:18 AM
12-12-2017 11:16 PM
12-17-2017 06:44 PM
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form