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!

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, ...