cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Embedded .NET machine agent doesn't report

Trent.Kerin
Builder

A page about the .NET agent says:

"The AppDynamics .NET Agent includes an embedded .NET Machine Agent that runs as part of the AppDynamics.Agent.Coordinator service. Among other things, the Machine Agent regularly gathers system performance data and reports it back to the Controller as metrics."

 

To simplify our deployment I've uninstalled the standalone (java) machine agent from one of our servers in favour of the "embedded .NET Machine Agent" mentioned above, but now there's no machine level metrics coming through at all.

 

I found the following in AgentLog.txt:

2021-08-03 14:44:00.0257 11408 AppDynamics.Coordinator 1 9 Info RegistrationChannel Auto agent registration attempted: Application Name [My application name] Component Name [Machine Agent] Node Name [My node name]
2021-08-03 14:44:00.0257 11408 AppDynamics.Coordinator 1 9 Info RegistrationChannel Auto agent registration SUCCEEDED!
2021-08-03 14:44:00.0257 11408 AppDynamics.Coordinator 1 9 Info MachineAgentManager Registered machine/collector agent with machine ID [707]
2021-08-03 14:44:00.0257 11408 AppDynamics.Coordinator 1 9 Info MachineAgentManager Starting Machine Agent ....
2021-08-03 14:44:00.0257 11408 AppDynamics.Coordinator 1 9 Info ControllerTimeSkewHandler Skew Handler is : [enabled].
2021-08-03 14:44:00.0569 11408 AppDynamics.Coordinator 1 9 Info MachineAgentManager Metrics Initialized with maxPublishQueueLength [5], aggregationFrequencyInMillis [60000]
2021-08-03 14:44:00.0569 11408 AppDynamics.Coordinator 1 9 Info MachineAgentManager Metrics Metric Service is : [enabled].
2021-08-03 14:44:00.0725 11408 AppDynamics.Coordinator 1 9 Info IISMetricManager Started IIS metric collection
2021-08-03 14:44:00.0725 11408 AppDynamics.Coordinator 1 9 Info MachineAgentManager Scheduling metric polling period of 60 with cache timeout of 1
2021-08-03 14:44:00.0882 11408 AppDynamics.Coordinator 1 9 Info MachineAgentManager starts EventLog listener
2021-08-03 14:44:00.1038 11408 AppDynamics.Coordinator 1 9 Info EventLogListener added EventLog for listening: [Application]
2021-08-03 14:44:00.1038 11408 AppDynamics.Coordinator 1 9 Info EventLogListener added EventLog for listening: [System]
2021-08-03 14:44:00.1038 11408 AppDynamics.Coordinator 1 9 Info EventLogListener added a new rule for monitoring .NET crash events: [Level = Warning, Source = Application Error]
2021-08-03 14:44:00.1038 11408 AppDynamics.Coordinator 1 9 Info EventLogListener added a new rule for monitoring .NET crash events: [Level = Warning, Source = .NET Runtime]
2021-08-03 14:44:00.1038 11408 AppDynamics.Coordinator 1 9 Info EventLogListener added a new rule for monitoring .NET crash events: [Level = Information, Source = Windows Error Reporting]
2021-08-03 14:44:00.1038 11408 AppDynamics.Coordinator 1 9 Info EventLogListener added a new rule for monitoring .NET crash events: [Level = Warning, Source = WAS]
2021-08-03 14:44:00.1038 11408 AppDynamics.Coordinator 1 9 Info EventLogListener starts listen EventLog: [Application]
2021-08-03 14:44:00.1194 11408 AppDynamics.Coordinator 1 9 Info EventLogListener starts listen EventLog: [System]
2021-08-03 14:44:00.1194 11408 AppDynamics.Coordinator 1 9 Info EventLogListener schedules to clean entries older than [60] sec every [60] sec
2021-08-03 14:44:00.1194 11408 AppDynamics.Coordinator 1 9 Info MachineAgentManager Set up agent re-registration task
2021-08-03 14:44:00.1194 11408 AppDynamics.Coordinator 1 9 Info MachineAgentManager Started AppDynamics Machine Agent Successfully.
2021-08-03 14:44:00.7288 11408 AppDynamics.Coordinator 1 11 Info ConfigurationManager Skipping update of environment variable 'InternalAppDynamicsAgent_ProfilerProcesses', as the value is unchanged
2021-08-03 14:44:01.7913 11408 AppDynamics.Coordinator 1 6 Info CoordinatorService Starting communicator...
2021-08-03 14:44:01.7913 11408 AppDynamics.Coordinator 1 9 Info CoordinatorCommunicator starting named pipe server
2021-08-03 14:44:01.8069 11408 AppDynamics.Coordinator 1 9 Info CoordinatorCommunicator named pipe = \\.\pipe\AppDynamicsAgentIPC
2021-08-03 14:44:06.0101 10932 w3wp 4 13 Warn HttpSink Error occurred while attempting to send data to [http://localhost:9090/v2/sinks/bt]

...Then a little later...

2021-08-03 14:45:00.1355 11408 AppDynamics.Coordinator 1 10 Info MachineAgentManager Metrics URL = https://redacted:1234/controller/instance/707/metricregistration
2021-08-03 14:45:00.1355 11408 AppDynamics.Coordinator 1 10 Info MachineAgentManager Metrics Payload = <request><node-id>0</node-id><agent-type>MACHINE_AGENT</agent-type><account-key>redacted</account-key><metric time-rollup-type="AVERAGE" name="Hardware Resources|Network|Outgoing KB/sec" hole-fill-type="REGULAR_COUNTER" cluster-rollup-type="INDIVIDUAL" /><metric time-rollup-type="AVERAGE" name="Hardware Resources|Network|Incoming packets/sec" hole-fill-type="REGULAR_COUNTER" cluster-rollup-type="INDIVIDUAL" />....

 

But no other instance of "MachineAgent" appears after this in AgentLog.txt, and the server/node appears dead from the perspective of the controller. The "HttpSink Error" error is a new issue as of this morning and might be unrelated.

 

How can I configure/debug to make this work? I'm wondering if the embedded .NET machine agent works at all, since there's practically no mention of it on any other AppDynamics pages.

3 REPLIES 3

Trent.Kerin
Builder

Update: It looks like the embedded machine agent is (mostly) working, but it doesn't show up on the Servers tab in my controller. Since most of my servers need the standalone machine agent, and that does show on the Servers tab, I'd really like the embedded machine agent metrics to show up in the Servers tab with them.

 

Is there a way to do this?

Further question: Is server visibility supported on the embedded .NET machine agent at all? It's implied by this page but not mentioned on the page that lists the limitations of the embedded agent.

Opened a ticket and got a reply back from support:

The embedded .NET machine agent does NOT support server/infrastructure visibility. They only work with the standalone machine agent.