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!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...