AppD Archive

Splunk appdynamics app configuration issue

Sunil_Marella
New Member

I am getting the below error while configuring appdynamics app in SPlunk, please help me

ERROR Exception received attempting to retrieve event '<splunk header name>': Unable to find the server at aviva1.saas.appdynamics.com
ERROR Stack trace for event 's<splunk header name>': Traceback (most recent call last):
File "C:\Program Files\Splunk\etc\apps\appdynamics\bin\events.py", line 34, in run
response, content = myhttp.request(url, 'GET')
File "C:\Program Files\Splunk\Python-2.7\Lib\site-packages\httplib2\__init__.py", line 1421, in request
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "C:\Program Files\Splunk\Python-2.7\Lib\site-packages\httplib2\__init__.py", line 1171, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "C:\Program Files\Splunk\Python-2.7\Lib\site-packages\httplib2\__init__.py", line 1128, in _conn_request
raise ServerNotFoundError("Unable to find the server at %s" % conn.host)
ServerNotFoundError: Unable to find the server at <client>.saas.appdynamics.com

0 Karma

Arun_Dasetty
Super Champion

Hi Sunil,

This could be the error raised due to host not available / hosy is down, Can you with aviva1.saas.appdynamics.com:80 or aviva1.saas.appdynamics.com:443 works fine, Also check if the information on forum link helps here:

http://stackoverflow.com/questions/6757252/python-httplib2-handling-exceptions,

http://answers.splunk.com/answers/120222/website-monitoring-not-working

also check whether host aviva1.saas.appdynamics.com as expected

If the issue still persists please file a ticket at help.appdynamics.com or send email to help@apppdynamics.com so that support team can have look at it, please attached relevant config files like inputs.conf etc to ticket

Regards,

Arun

0 Karma

Sunil_Marella
New Member

Hi Arun,

Thanks for your reply, eiher case it did not work.

I am suspecting is bec we are using https login for appdynamics where as in app, importing only httplibe2 files.

Is it correct? any idea do you have?

Code : 

import json
import httplib2
import threading
import logging
import logging.handlers
import os
import sys
import time
import datetime

.

.

.

myhttp = httplib2.Http(disable_ssl_certificate_validation=True)
myhttp.add_credentials(self._username, self._password)
url = self._url + '&output=JSON'
logger.debug('Requesting metric from url: %s' % url)
response, content = myhttp.request(url, 'GET')
logger.debug('Response: %s' % content)
parsed = json.loads(content)

0 Karma

Arun_Dasetty
Super Champion

Hi Sunil,

Not sure though, as the error we see is not as listed in http://stackoverflow.com/questions/8007348/error-opening-ssl-connection-using-httplib2

http://stackoverflow.com/questions/13707606/httplib2-ssl-error

Check if that forum link info helps here, we request you to file a ticket at help.appdynamics.com for quicker resolution

Regards,

Arun

0 Karma
Get Updates on the Splunk Community!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...