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!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...