I'm trying to run NodeJS agent on SaaS controller.
The agent wizard generates this method call for me:
require("appdynamics").profile({
controllerHostName: '***.saas.appdynamics.com',
controllerPort: 443, // If SSL, be sure to enable the next line
controllerSslEnabled: true, // Optional - use if connecting to controller via SSL
accountName: '***', // Required for a controller running in multi-tenant mode.
accountAccessKey: '***', // Required for a controller running in multi-tenant mode.
applicationName: 'AppTest',
tierName: 'Test',
nodeName: 'Node ***', // Node names must be unique. A unique name has been generated for you.
debug: false // Optional - defaults to false.
});
This is an error what i've got:
/Users/Alex/Projects/NodeBB/node_modules/appdynamics/lib/core/proxy.js:206 var orig = obj[meth]; ^ TypeError: Cannot read property 'listen' of undefined at /Users/Alex/Projects/NodeBB/node_modules/appdynamics/lib/core/proxy.js:206:19 at Array.forEach (native) at Proxy.after (/Users/Alex/Projects/NodeBB/node_modules/appdynamics/lib/core/proxy.js:205:9) at SocketioProbe.attach (/Users/Alex/Projects/NodeBB/node_modules/appdynamics/lib/probes/socket.io-probe.js:40:9) at Agent.loadProbes (/Users/Alex/Projects/NodeBB/node_modules/appdynamics/lib/core/agent.js:298:27) at Agent.init (/Users/Alex/Projects/NodeBB/node_modules/appdynamics/lib/core/agent.js:246:8) at self.(anonymous function) [as profile] (/Users/Alex/Projects/NodeBB/node_modules/appdynamics/lib/core/agent.js:372:26) at Object.<anonymous> (/Users/Alex/Projects/NodeBB/app.js:23:24) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10)
I'm using Mac OS X 10.9.5, Node v. 0.10.33, npm v. 1.4.28, AppDynamics package v. 4.0.0 (wizard asks to install v. 3.9.6 but there is no such in NPM registry )
Could you please help?
Hey Alexander,
Can you confirm your SocketIO library version is < 1.0? If so, my best information is we will need to upgrade that library.
With kindness,
Kyle
Thanks, Ryan!
I've been using v.0.9, upgraded and everything works now!