Dynamic Languages (Node.JS, Python, PHP, C/C++, Webserver Agent)

cancel
Showing results for 
Search instead for 
Did you mean: 

Python Agent Registration Issues with 4.3 SaaS Controller

AppDynamics Team

Python Agent Registration Issues with 4.3 SaaS Controller

HI All,

I am working with a customer's lab environment as part of a POV and we can't get the python agent to register with the controller. The agent and controller are version 4.3, downloaded this week. The python version is 2.7, and they have an HTTP based network proxy in their environement which handles both http and https traffic according to customer. BTW, the same lab env has a Java and a .NET agent also running and they work fine with the proxy setup similar to below.

The application in this case is a python script, I am including snippets of it below as it is too long.

 

We had customer start the python proxy manually as indicated in our docs but that did not make any difference.

 

We don't see anything in logs, but I have included the log file in the attachment along with the agent config and run commands used.

Since this is a stand alone python application, should it work? What do we need to do to make it work?

Thanks!

This is a rather pressing situation, appreciate any quick support.

 

+++++

#Import Custom Python Conenctors import sys sys.path.append('/swb/local/lib/python') from xml.dom import minidom from scp import SCPClient import glob, os, time, datetime import xml.etree.ElementTree as ET import pymqi, CMQC, paramiko,urllib2, json,ssl import shutil,mysql.connector, ConfigParser, threading #Read Variable from ini configParser = ConfigParser.RawConfigParser(allow_no_value=True) configFilePath = r'/swb/opt/air/config/AirAlarmIntegrationEnv.ini' configParser.read(configFilePath) AirStatusFile = configParser.get('file', 'AirStatusFile') putTier3MsgToQ = int(configParser.get('file', 'putTier3MsgToQ')) queue_manager = configParser.get('file', 'queue_manager') channel = configParser.get('file', 'channel') host = configParser.get('file', 'host') port = configParser.get('file', 'port') putMsg_tier3_qname = configParser.get('file','putMsg_tier3_qname') Tier3toAirLogDir = configParser.get('file','Tier3toAirLogDir') AirToTier3LogDir = configParser.get('file','AirToTier3LogDir') AirToSoaLogDir = configParser.get('file','AirToSoaLogDir') NapmErrorDir = configParser.get('file','NapmErrorDir') NapmDirectiveDir = configParser.get('file','NapmDirectiveDir') espuser = configParser.get('file','espuser') AirToM3LogDir = configParser.get('file','AirToM3LogDir') OnAirToTier3Dir = configParser.get('file','OnAirToTier3Dir') EspKeyFile = configParser.get('file','EspKeyFile') TokenkeyDir = configParser.get('file','KeyFile') AirDbServer = configParser.get('file','AirDbServer') AirDbName = configParser.get('file','AirDbName') AirDbUser = configParser.get('file','AirDbUser') AirDbPwd = configParser.get('file','AirDbPwd') # Database Connection Strings conn_info = '{}({})'.format(host,port) #Define script parameters debug="False" keep_running="True" def prettify(elem): #Return a pretty-printed XML string for the Element. rough_string = ET.tostring(elem, 'utf-8') reparsed = minidom.parseString(rough_string) return reparsed.toprettyxml(indent=" ") def new_prettify(elem): rough_string = ET.tostring(elem,'utf-8') reparsed = minidom.parseString(rough_string) splitStr = reparsed.toprettyxml(indent=" ").split('\n') return '\n'.join([line for line in splitStr if line.strip()])

 

Python Agent Registration Issues with 4.3 SaaS Controller
4 REPLIES 4
AppDynamics Team

Re: Python Agent Registration Issues with 4.3 SaaS Controller

Hi Kamlesh,

 

Out of the box, the Python agent only supports WSGI-based application frameworks. It appears that this Python code is custom. Could you describe the architecture any any off the shelf libraries in play?

 

Regards,

Kyle

Thanks,
Kyle Furlong, Technical Lead (C++ and Dynamic Languages)




Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.
AppDynamics Team

Re: Python Agent Registration Issues with 4.3 SaaS Controller

Thanks again Kyle for your help! I am going to track our conversation in the ticket to keep it in one place going forward.

For any one else interested in this topic, please check out --> http://appdynamics.zendesk.com/agent/tickets/107511

 

Thanks 

Moderator

Re: Python Agent Registration Issues with 4.3 SaaS Controller

Kamlesh,

 

  Just an FYI. I have removed the attachment you added in your first post as it had Customer's account details. Going forward in case you need to share logs etc please ask us for SFTP/egnyte endpoints so that Customer's artifacts can be shared securely.

 

Thanks,

Raunak



Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.
AppDynamics Team

Re: Python Agent Registration Issues with 4.3 SaaS Controller

Thanks Raunak!