All Apps and Add-ons

Websphere JMX Python error

id19868
New Member

It appears that the python script for getting the MBeans from Websphere is missing the wsadmincommands.conf file.

See my error:

10-01-2010 09:50:52.063 ERROR ExecProcessor - message from "python "E:\Program Files\Splunk\etc\apps\SplunkWAS\bin\WebSpherewsadminLauncher.py"" Traceback (most recent call last):

10-01-2010 09:50:52.079 ERROR ExecProcessor - message from "python "E:\Program Files\Splunk\etc\apps\SplunkWAS\bin\WebSpherewsadminLauncher.py"" File "E:\Program Files\Splunk\etc\apps\SplunkWAS\bin\WebSpherewsadminLauncher.py", line 78, in

10-01-2010 09:50:52.079 ERROR ExecProcessor - message from "python "E:\Program Files\Splunk\etc\apps\SplunkWAS\bin\WebSpherewsadminLauncher.py"" launcher.launchwsadmin()

10-01-2010 09:50:52.079 ERROR ExecProcessor - message from "python "E:\Program Files\Splunk\etc\apps\SplunkWAS\bin\WebSpherewsadminLauncher.py"" File "E:\Program Files\Splunk\etc\apps\SplunkWAS\bin\WebSpherewsadminLauncher.py", line 34, in launchwsadmin

10-01-2010 09:50:52.079 ERROR ExecProcessor - message from "python "E:\Program Files\Splunk\etc\apps\SplunkWAS\bin\WebSpherewsadminLauncher.py"" if not len(commandLine) == 0:

10-01-2010 09:50:52.079 ERROR ExecProcessor - message from "python "E:\Program Files\Splunk\etc\apps\SplunkWAS\bin\WebSpherewsadminLauncher.py"" TypeError: object of type 'NoneType' has no len()

This line of code in the WebsphereadminLauncher.py

def getwsadminCmds(self):

    if os.path.exists(os.path.join(self.SplunkWASlocaldirpath, 'wsadminCommands.conf')):

        with file(os.path.join(self.SplunkWASlocaldirpath, 'wsadminCommands.conf'),'r') as wsadminCmds:

            return wsadminCmds.readlines()
Tags (1)
0 Karma

Curt_Collins
Splunk Employee
Splunk Employee

The WAS App requires you to run configure it via the setup page when it is first installed. You can also re-run the setup from the manager page. Did you run the GUI setup? Can you provide some repro steps?

0 Karma

Simon
Contributor

Same here. Looks like there's missing wsadminCommands.conf in the app!

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...