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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Observe and Secure All Apps with Splunk

 Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What's New in Splunk Observability - August 2025

What's New We are excited to announce the latest enhancements to Splunk Observability Cloud as well as what is ...

Introduction to Splunk AI

How are you using AI in Splunk? Whether you see AI as a threat or opportunity, AI is here to stay. Lucky for ...