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 Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...