Splunk AppDynamics

NodeJS proxyless agent unable to communicate with controller

Richard_Maybin
Explorer

I've been attempting to add appdynamics to a set of NodeJS components we have. We use a private AppD Controller within the company firewall running version 4.4.3. I have only been able to get the agent to communicate with the controller via the java proxy on version 4.4.3. Whenever I try to configure libagent:true the agent does start and I get an http error in agent logs (see logs below). I'd additionally tried with different module versions and different nodeJs versions with no luck.  Below shows our appD profile added to server.js.

App Dynamics Profile: { controllerHostName: 'XXXXXXXXXXXX',
controllerPort: '8181',
controllerSslEnabled: true,
accountName: 'XXXXXXX',
accountAccessKey: 'XXXXXXXXXXX',
applicationName: 'icg-msst-icgbuild-loki-167539-DEV',
tierName: 'loki-ui',
nodeName: 'loki-ui',
libagent: true,
debug: true }
[DEBUG] Appdynamics agent logs: /tmp/appd/66b173439b00d9f3b30dbc626af4dbd8

NodeJS version: 10.10.0 (build & runtime)

AppD NodeJS agent version: 20.3.1

OS version: Red Hat Enterprise Linux Server release 6.10 (Santiago)

[Log file redacted]

^ Post edited by @Ryan.Paredez. Please do not attach or paste log files into community post for security and privacy reasons. 

Labels (1)
Tags (1)
1 Solution

Piyush_Mundra
Communicator

Hi Richard,

The libagent needs the reference of the custom certificate in order to connect to the controller over the SSL. Can you please get the controller's certificate in .PEM format and reference the certificate file path in the agent configuration with the help of certificateFile configuration option? Please have a look at the agent configurations at https://docs.appdynamics.com/display/PRO45/Node.js+Settings+Reference

After referencing the controller certificate file, restart the Node application and see if that helps to resolve this issue?

Best Regards,

Piyush

View solution in original post

Piyush_Mundra
Communicator

Hi Richard,

The libagent needs the reference of the custom certificate in order to connect to the controller over the SSL. Can you please get the controller's certificate in .PEM format and reference the certificate file path in the agent configuration with the help of certificateFile configuration option? Please have a look at the agent configurations at https://docs.appdynamics.com/display/PRO45/Node.js+Settings+Reference

After referencing the controller certificate file, restart the Node application and see if that helps to resolve this issue?

Best Regards,

Piyush

Richard_Maybin
Explorer

Hi Piyush,

Thanks for the prompt response. I had initially tried certificateFile but not with .PEM format. I've now retried and can successfully communicate with Controller. Should certificate file format also be referenced in Agent settings page? Thanks for the help.

Get Updates on the Splunk Community!

Leveraging Detections from the Splunk Threat Research Team & Cisco Talos

  Now On Demand  Stay ahead of today’s evolving threats with the combined power of the Splunk Threat Research ...

New in Splunk Observability Cloud: Automated Archiving for Unused Metrics

Automated Archival is a new capability within Metrics Management; which is a robust usage & cost optimization ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...