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
Get Updates on the Splunk Community!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...