Getting Data In

Website monitoring not working.

KarunK
Contributor

Hi All,

I have installed the website monitoring app in my PC (Splunk 6). But I couldn't make it working.Its says "Connection Failed"

python_modular_input.log logs looks good.

2014-01-28 17:16:39,510 INFO Execute called
2014-01-28 17:16:39,510 INFO Modular input: validate arguments called
2014-01-28 17:16:39,513 INFO Execution completed successfully
2014-01-28 17:16:40,855 INFO Execute called

web_availability_modular_input.log has ServerNotFound error.

2014-01-28 17:49:29,674 ERROR A general exception was thrown when executing a web request
Traceback (most recent call last):
  File "D:\Splunk\etc\apps\website_monitoring\bin\web_ping.py", line 255, in ping
    response, content = http.request(url.geturl(), 'GET')
  File "D:\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 "D:\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 "D:\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 www.bbc.uk

Can anyone please help to fix it? The config are as follows

website_monitoring.conf

[default]

proxy_password = PASSWORD
proxy_port = 8080
proxy_server = proxy.com
proxy_user = user1

inputs.conf

[web_ping://bbc]
index = main
interval = 1m
title = presto
url = http://www.bbc.co.uk/

The indexed events looks like below.

timed_out=False title=bbc response_code= request_time= url=www.bbc.co.uk total_time=

Thanks for your help.

Regards

KK

Tags (2)
0 Karma

thomas_unger_ex
Explorer

I got the same issue.
It was fixed if I remove the httplib2 in
$SPLUNK_HOME/lib/python2.7/site-packages
and replaced it with httplib2 Version 0.9.2 (downloaded and extracted)
`
$SPLUNK_HOME/bin/splunk cmd python

print httplib2.version
0.9.2`

So I can go across proxies also with user and pass....

0 Karma

barryherne
New Member

May be you need to reinstall the tool and choose another website monitoring software? Try Anturis or Pingdom or something else?

0 Karma

rsennett_splunk
Splunk Employee
Splunk Employee

Hi there KarunK,

When you run through the setup, the instructions say that when you are not using a proxy server, you are to leave the settings blank. The settings you provide above seem like false settings. Are those really the settings for your proxy server? I would imaging that those settings would cause problems if they lead nowhere... and the "server not found" complaint would then be accurate.

You might want to run the setup again and wipe out those settings.

I installed the app and it ran just great for me... the $SPLUNK_HOME/etc/apps/website_monitoring/default/websitemonitoring.conf should contain blank values for the proxy settings and saving the blank form will produce a [default] stanza in a websitemonitoring.conf in the local directory (blank) as well.

With Splunk... the answer is always "YES!". It just might require more regex than you're prepared for!

KarunK
Contributor

Proxy settings shown above are not the correct one. I have masked it for security purposes. I have removed the proxy settings but still i am getting "ServerNotFoundError".

0 Karma

bandit
Motivator

I would recommend first checking a site that does not use proxy to validate the script is working.
You might also be able to contact the author here: https://github.com/LukeMurphey/splunk-website-monitoring

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...