All Apps and Add-ons

wlsCollectJmxDataMinute.py Error in log

xuanyun
Path Finder

I used Splunk for weblogic monitor.
When I test wlsCollectJmxDataMinute.py, I got some error.

1.env can not be found
Then I solve it.
Add --sys.registry.setProperty( "python.os", "nt" )-- in .py file

2.wlsCollectJmxDataMinute.py can not logging.
The .py script can be run to generate log files, but there is no content.
So I run .py in WLST manually.
There is no error and no content in log.

wls:/medrec/domainRuntime> if (len(servers) > 0):
... for server in servers:
... cd ('/ServerRuntimes/' + server.getName() )
... serverDataStr = "domain=%s|server=%s|server_state=%s|server_health=%s" % ( domainRuntime.getName(), server.getName(), str(cmo.getState()), str(cmo.getHealthState()) )
... writeServerData(serverDataStr)
...
wls:/medrec/domainRuntime/ServerRuntimes/MedRecServer>

I can print serverDataStr as blow:

wls:/medrec/domainRuntime> print serverDataStr
domain=medrec|server=MedRecServer|server_state=RUNNING|server_health=Component:ServerRuntime,State:HEALTH_OK,MBean:MedRecServer,ReasonCode:[]

The log Security Permissions, I give it "Everyone" with "All control".
How can I do for the log error?

My env.:
weblogic:10.3.0.0
os:windows server 2008 x64
jdk:sun jdk 1.6 x64

0 Karma

vmaniku
New Member

Hi Xuanyun,

Can you provide the contents of your setWlstEnv.cmd script? The jython scripts are not set up to run standalone. Splunk should be invoking the 'runWlstScriptsMinute.cmd' script which in turn runs that jython script.

thanks,

Vasanth

Function1

0 Karma

xuanyun
Path Finder

I found these errors in search.log at "Machines--%CPU load" with "No results found. Inspect ..."

07-25-2013 12:43:32.018 INFO LookupOperator - Disabling automatic lookup of table 'wls_messages' for conf 'wls_managedserver' because the output fields are not referenced.
07-25-2013 12:43:32.018 INFO LookupOperator - Disabling automatic lookup of table 'wls_messages' for conf 'wls_managedserver_out' because the output fields are not referenced.

0 Karma

xuanyun
Path Finder

I solved it.It missed a code in "wlsCollectJmxDataMinute.py" which is "logFile.close()" at the end of this ".py".

There is a new error.
At chapter "Troubleshooting the Technology Add-on" in the "WLS_App_TA_install_instructions.pdf"documentation, it told me " Verify the forwarders output configuration."
But I can not find "outputs.conf". When I create "outputs.conf", I don't known what to write format.
Where I can find the example of "outputs.conf"?
Thank you!

0 Karma

xuanyun
Path Finder

It looks like "serverDataStr" can be generated, but cannot be exported.
Could anyone help me to solve it?

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Index This | What travels the world but is also stuck in place?

April 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Discover New Use Cases: Unlock Greater Value from Your Existing Splunk Data

Realizing the full potential of your Splunk investment requires more than just understanding current usage; it ...

Continue Your Journey: Join Session 2 of the Data Management and Federation Bootcamp ...

As data volumes continue to grow and environments become more distributed, managing and optimizing data ...