Splunk AppDynamics

.Net core agent Linux is not connecting to the saas controller

CommunityUser
Splunk Employee
Splunk Employee

I have downloaded AppDynamics-DotNetCore-linux-x64-4.5.17.0.zip and extracted binaries from zip folder and copied them to the /opt/appdynamics/dotnet. (libappdprofiler.so,AppDynamics.Agent.netstandard.dll and AppDynamicsConfig.json)And edited AppDynamicsConfig.json with contoller and application details And also setted required environmental variables .Created a sample .net core razor application using .NET core 3.0 and running it using kestrel service configuration.


How can we know whether agent is connected to controller or not?
Observed that 11449_agent_0.log generated in /tmp/appd/dotnet and there is no errors in the log.
After starting agent sucessfully there are three warnings in agent log.


2019-12-10 17:06:14.330299| WARN|httpclient| Invalid header in Http response
2019-12-10 17:06:14.330434| WARN|agent| Agent config request error {http status 401}
2019-12-10 11:15:15.107991| WARN|agent| Connection back off limitation in effect for config request


but there is no metrics in the controller.

We use the following versions,


AppDynamics Agent 4.5.17.0
AppDynamics Controller build 4.5.13.3067 (appdynamics saas controller)
Linux centos7
.NET Core 3.0

Note: I did not change the project code as specified in the link https://docs.appdynamics.com/display/PRO45/.NET+Core+for+Linux+SDK. Will it work out of the box..?

Labels (1)
0 Karma

millerep
Contributor

If it's complaining about HTTP then there there might be an issue with your AppDynamicsConfig.json. Can you vi back into it and make sure you set it to point to the Controller correctly?

This doc may help: https://docs.appdynamics.com/display/PRO45/.NET+Agent+for+Linux+Advanced+Configuration+Options

Pay special attention to the ports you're using also to make sure they're not blocked, and that you're using the correct ones whether you're using SSL or not. Another place to check would be the cert trust.

Get Updates on the Splunk Community!

Get Schooled with Splunk Education: Explore Our Latest Courses

At Splunk Education, we’re dedicated to providing incredible learning experiences that cater to every skill ...

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL  The Splunk AI Assistant for SPL ...

Buttercup Games: Further Dashboarding Techniques (Part 5)

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