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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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