All Apps and Add-ons

Splunk 8.0 Website Monitoring python fail

eduardo1989
Path Finder

Dear All,
I am facing the following issue on a Splunk 8.0 with WebSite Monitoring app:
11-07-2019 12:09:51.967 ERROR ScriptRunner - stderr from '/opt/splunk/bin/python2.7 /opt/splunk/etc/apps/website_monitoring/bin/web_ping_search_command.py url=https://google.com': Traceback (most recent call last):
11-07-2019 12:09:51.967 ERROR ScriptRunner - stderr from '/opt/splunk/bin/python2.7 /opt/splunk/etc/apps/website_monitoring/bin/web_ping_search_command.py url=https://google.com': File "/opt/splunk/etc/apps/website_monitoring/bin/web_ping_search_command.py", line 5, in
11-07-2019 12:09:51.967 ERROR ScriptRunner - stderr from '/opt/splunk/bin/python2.7 /opt/splunk/etc/apps/website_monitoring/bin/web_ping_search_command.py url=https://google.com': from website_monitoring_app.search_command import SearchCommand
11-07-2019 12:09:51.967 ERROR ScriptRunner - stderr from '/opt/splunk/bin/python2.7 /opt/splunk/etc/apps/website_monitoring/bin/web_ping_search_command.py url=https://google.com': File "/opt/splunk/etc/apps/website_monitoring/bin/website_monitoring_app/search_command.py", line 45, in
11-07-2019 12:09:51.967 ERROR ScriptRunner - stderr from '/opt/splunk/bin/python2.7 /opt/splunk/etc/apps/website_monitoring/bin/web_ping_search_command.py url=https://google.com': from splunk.appserver.mrsparkle.lib.util import make_splunkhome_path
11-07-2019 12:09:51.967 ERROR ScriptRunner - stderr from '/opt/splunk/bin/python2.7 /opt/splunk/etc/apps/website_monitoring/bin/web_ping_search_command.py url=https://google.com': File "/opt/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/lib/util.py", line 22, in
11-07-2019 12:09:51.967 ERROR ScriptRunner - stderr from '/opt/splunk/bin/python2.7 /opt/splunk/etc/apps/website_monitoring/bin/web_ping_search_command.py url=https://google.com': import cherrypy
11-07-2019 12:09:51.967 ERROR ScriptRunner - stderr from '/opt/splunk/bin/python2.7 /opt/splunk/etc/apps/website_monitoring/bin/web_ping_search_command.py url=https://google.com': File "/opt/splunk/lib/python2.7/site-packages/cherrypy/init.py", line 73, in
11-07-2019 12:09:51.967 ERROR ScriptRunner - stderr from '/opt/splunk/bin/python2.7 /opt/splunk/etc/apps/website_monitoring/bin/web_ping_search_command.py url=https://google.com': from ._cptools import default_toolbox as tools, Tool
11-07-2019 12:09:51.967 ERROR ScriptRunner - stderr from '/opt/splunk/bin/python2.7 /opt/splunk/etc/apps/website_monitoring/bin/web_ping_search_command.py url=https://google.com': File "/opt/splunk/lib/python2.7/site-packages/cherrypy/_cptools.py", line 33, in
11-07-2019 12:09:51.967 ERROR ScriptRunner - stderr from '/opt/splunk/bin/python2.7 /opt/splunk/etc/apps/website_monitoring/bin/web_ping_search_command.py url=https://google.com': from cherrypy.lib import auth_basic, auth_digest
11-07-2019 12:09:51.967 ERROR ScriptRunner - stderr from '/opt/splunk/bin/python2.7 /opt/splunk/etc/apps/website_monitoring/bin/web_ping_search_command.py url=https://google.com': File "/opt/splunk/lib/python2.7/site-packages/cherrypy/lib/auth_digest.py", line 27, in
11-07-2019 12:09:51.967 ERROR ScriptRunner - stderr from '/opt/splunk/bin/python2.7 /opt/splunk/etc/apps/website_monitoring/bin/web_ping_search_command.py url=https://google.com': from six.moves.urllib.request import parse_http_list, parse_keqv_list
11-07-2019 12:09:51.967 ERROR ScriptRunner - stderr from '/opt/splunk/bin/python2.7 /opt/splunk/etc/apps/website_monitoring/bin/web_ping_search_command.py url=https://google.com': ImportError: cannot import name parse_http_list
11-07-2019 12:09:51.975 ERROR script - sid:1573150191.65 External search command 'webping' returned error code 1. .

On the other hand when I wanted to create a new input it says:
Encountered the following error while trying to save: global name 'splunk' is not defined
Thank you,

1 Solution

LukeMurphey
Champion

Website Monitoring has not yet been updated to work on Splunk 8.0.0. I am in the process of converting the apps to work with Splunk 8.0.0.

See https://lukemurphey.net/issues/2500 for details. This will be fixed in version 2.8.0 of Website Monitoring (should be done within a week or so).

View solution in original post

LukeMurphey
Champion

Website Monitoring has not yet been updated to work on Splunk 8.0.0. I am in the process of converting the apps to work with Splunk 8.0.0.

See https://lukemurphey.net/issues/2500 for details. This will be fixed in version 2.8.0 of Website Monitoring (should be done within a week or so).

eduardo1989
Path Finder

Thank you very much for the fast response!

0 Karma
Get Updates on the Splunk Community!

Observability Unlocked: Kubernetes Monitoring with Splunk Observability Cloud

 Ready to master Kubernetes and cloud monitoring like the pros? Join Splunk’s Growth Engineering team for an ...

Update Your SOAR Apps for Python 3.13: What Community Developers Need to Know

To Community SOAR App Developers - we're reaching out with an important update regarding Python 3.9's ...

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...