AppD Archive

.NET agent not sending data

CommunityUser
Splunk Employee
Splunk Employee

I have a .NET agent running on a Windows 2008 R2 servers and I don't get any data on the AppDynamics website. I'm using the SaaS model and it says the agent is connected but not sending data. I've hit my website so there should be data to send. I looked in the AgentLog.txt file and found the following error. Any ideas on why this is happening?

2016-02-17 09:54:28.5410 2936 AppDynamics.Coordinator 1 14 Warn MachineAgentManager Metrics Error sending metric data to controller:System.Net.WebException: The underlying connection was closed: A connection that was expected to be kept alive was closed by the server. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
--- End of inner exception stack trace ---
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.FixedSizeReader.ReadPacket(Byte[] buffer, Int32 offset, Int32 count)
at System.Net.Security._SslStream.StartFrameHeader(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security._SslStream.StartReading(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security._SslStream.ProcessRead(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.TlsStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetResponse()
at AppDynamics.Shared.Communication.le.m(Byte[] , String )
at com.appdynamics.ee.rest.controller.request.nn.c(String , ad , Boolean )
2016-02-17 09:54:28.5410 2936 AppDynamics.Coordinator 1 14 Error MachineAgentManager Metrics Error sending metrics - will requeue for later transmissionException: com.appdynamics.ee.agent.commonservices.metricgeneration.metrics.hf: System.Net.WebException: The underlying connection was closed: A connection that was expected to be kept alive was closed by the server. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
--- End of inner exception stack trace ---
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.FixedSizeReader.ReadPacket(Byte[] buffer, Int32 offset, Int32 count)
at System.Net.Security._SslStream.StartFrameHeader(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security._SslStream.StartReading(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security._SslStream.ProcessRead(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.TlsStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetResponse()
at AppDynamics.Shared.Communication.le.m(Byte[] , String )
at com.appdynamics.ee.rest.controller.request.nn.c(String , ad , Boolean )
at com.appdynamics.ee.agent.commonservices.metricgeneration.AMetricSubscriber.publish(hn metrics)
at com.appdynamics.ee.agent.commonservices.metricgeneration.MetricReporter.run()

Tags (2)
0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Hi Dan,

Please test the controller connection through .Net Agent Confuration wizard and check if you are able to connect to the controller. In case you are failing with that as well, seems there is some network issue there.

Regards,
Ashutosh

0 Karma
Get Updates on the Splunk Community!

Celebrating Fast Lane: 2025 Authorized Learning Partner of the Year

At .conf25, Splunk proudly recognized Fast Lane as the 2025 Authorized Learning Partner of the Year. This ...

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...